Installing tests dependencies and running testsΒΆ
To run the tests, extra Python dependencies are needed:
black
codespell
coverage
django-extensions
factory-boy
django-factory-generator
flake8
flake8-docstrings
freezegun
isort
; pylint ; when we ever fix all the errors it throughs
pytest
pytest-django
tox
sphinx
To install them from onbasca
git clone https://gitlab.torproject.org/tpo/network-health/onbasca
cd onbasca
pip install .
pip install .[test]
To run the tests:
tox
You can also just run one of the tox
environments (see tox.ini
at the
root of this repository), eg:
tox -e doc
To test that the documentation can be built correctly.
You can also run tests running pytest
,
eg. to run the test test_ratios
:
onbrisca/tests/test_bridge_measurement.py::test_ratios