Running tests¶
Tests have been classified and tagged using pytest markers in order to make it easier to run only
some of them. In particular, we use the marker celery to denote the tests needing a working task
queue to be run. This means that you can run tests that don’t need a task queue like so:
just test-nocelery
and run the tests that need one like so (default, run all the tests):
just test
For that last part to work, you need to have either:
WORKER_START=Truein yourconfig.pyfile or as an env variablestarted a worker process (eg:
just worker) in a different shell
If you fail to do so, the tests will hang while waiting for a worker to process their tasks.