mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-05 21:03:14 +03:00
Refactor tests section of asyncio daemon tutorial
This commit is contained in:
parent
b17ca3ddbc
commit
214ab50970
|
@ -862,7 +862,7 @@ In next section we will add some tests.
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
It would be nice to add some tests. Let's do it.
|
In this section we will add some tests.
|
||||||
|
|
||||||
We will use `pytest <https://docs.pytest.org/en/stable/>`_ and
|
We will use `pytest <https://docs.pytest.org/en/stable/>`_ and
|
||||||
`coverage <https://coverage.readthedocs.io/>`_.
|
`coverage <https://coverage.readthedocs.io/>`_.
|
||||||
|
@ -992,14 +992,14 @@ You should see:
|
||||||
Name Stmts Miss Cover
|
Name Stmts Miss Cover
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
monitoringdaemon/__init__.py 0 0 100%
|
monitoringdaemon/__init__.py 0 0 100%
|
||||||
monitoringdaemon/__main__.py 9 9 0%
|
monitoringdaemon/__main__.py 12 12 0%
|
||||||
monitoringdaemon/containers.py 11 0 100%
|
monitoringdaemon/containers.py 11 0 100%
|
||||||
monitoringdaemon/dispatcher.py 43 5 88%
|
monitoringdaemon/dispatcher.py 44 5 89%
|
||||||
monitoringdaemon/http.py 6 3 50%
|
monitoringdaemon/http.py 6 3 50%
|
||||||
monitoringdaemon/monitors.py 23 1 96%
|
monitoringdaemon/monitors.py 23 1 96%
|
||||||
monitoringdaemon/tests.py 37 0 100%
|
monitoringdaemon/tests.py 37 0 100%
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
TOTAL 129 18 86%
|
TOTAL 133 21 84%
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ The output should be something like:
|
||||||
plugins: asyncio-0.14.0, cov-2.10.0
|
plugins: asyncio-0.14.0, cov-2.10.0
|
||||||
collected 2 items
|
collected 2 items
|
||||||
|
|
||||||
monitoringdaemon/tests.py .. [100%]
|
monitoringdaemon/tests.py .. [100%]
|
||||||
|
|
||||||
----------- coverage: platform linux, python 3.8.3-final-0 -----------
|
----------- coverage: platform linux, python 3.8.3-final-0 -----------
|
||||||
Name Stmts Miss Cover
|
Name Stmts Miss Cover
|
||||||
|
|
Loading…
Reference in New Issue
Block a user