Testing is needed to demostrate to you or the PO that the code is in a working state. Whenever new changes are made the test verify that previous functionality is still working and that new functionality is working as expected.
This project demostrates a testing approach for celery/postgresql project using pytest as testing framework but also to control the database state.
- celery
- pytest
- pytest-celery
- pytest-postgresql
src
- the source codetests
- the testsconftest.py
- pytest configuration filepyproject.toml
- project configuration file (includes dependencies and tasks)
Note: The project is using poetry to manage dependencies and tasks.
$> poetry install --no-root
$> poetry run poe test