# Tests

For running test, you need to first run database. But we can have it in a container.

1) Execute `docker-compose -f docker-compose-test.yml up -d`
2) Execute `docker-compose -f docker-compose-test.yml exec data-processor-test python3 -m pytest tests/integration --durations=0 --cov=service/tasks -rP --disable-warnings`

Alternatively, `bash run_tests.sh` must work as well. We use containerized setup for testing via CircleCI
(see `.cicrcleci/config.yml`).

Notice that module imports have `app` prepended - that's the dir in the container they're in.
