Testing RestDF¶
Testing using pytest¶
RestDF tests are written using pytest.
pytest -v --cov
The available pytest markers are:
Name |
Description |
|---|---|
|
File input-output related tests, mainly the |
|
All Flask related tests ( |
|
All endpoint related tests ( |
|
Testing all utility scripts ( |
mypy¶
For static typing we’re using mypy.
mypy restdf
The configs for mypy can be found at pyproject.toml.
flake8¶
Code style checking is handled via flake8
flake8 restdf
The config for flake8 are kept at setup.cfg.
tox¶
For testing RestDF on different python versions we’re using tox. The
configuration for it is available in tox.ini
tox
Apart from the unittests, tox tests for code style and static typing using flake8 & mypy respectively.