pytest-dbfixtures Overview py.test clean fixtures: mysql, redis, mongo, rabbitmq. Starts specific database deamon and cleanup all data produced during tests. Install bash $ pip install pytest-dbfixtures How to use Please see documentation