Tests¤
The project uses pytest for testing, as well as set up coverage tests using pytest-cov, it is highly recommended for review.
Usage¤
You can run tests in a development environment with the following command:
A matrix for a set of python and django versions is also configured in hatch, you can see more about this in the settings in the pyproject.toml
file, you can run the entire test matrix with the hatch script:
Development¤
When developing tests, you may need to create new migrations, this can be done with the following command
The application used in the tests lies in the test_project
directory.
The database is used by in-memory SQLite.
Autotests¤
Tests are automatically processed when pushing to master
and release branches release/*
. See workflow config for details.
In the process, test results are uploaded to codecov.io.