Development

Testing

Since the tests require various configurations and versions of redis, a docker-compose file is provided to make running tests easier.

This requires a working docker & docker-compose installation.

The unit tests will lazily initialize the containers required per test using the lovely-pytest-docker plugin.

$ pip install -r requirements/test.txt
$ pytest tests/

To reduce unnecessary setup and tear down the containers are left running after the tests complete. To cleanup:

docker-compose down --remove-orphans