Databases fixtures plugin for py.test.
Project description
pytest-dbfixtures
Overview
py.test clean fixtures for: mysql, redis, mongo, rabbitmq, postgresql and elasticsearch.
Starts specific database deamon and cleanup all data produced during tests.
Install
$ pip install --upgrade pytest-dbfixtures
How to use
Please see documentation
CHANGES
0.4.21
remove elasticsearch home folder at process teardown
set elasticsearch index.store.type to memory by default
localized elasticsearch instance by default
replaced summon_process with mirakuru
0.4.20
RabbitMQ process fixture is session scoped
rabbitmq fixture factory accepts custom teardown
0.4.19
StopRunningExecutor to simply return if process had been already killed.
0.4.18
MongoDB fixtures can be now initialized by factories
0.4.17
Bugfix: params in redis fixture
0.4.16
Add params to mysql fixture
0.4.15
Client fixtures now check if process (process fixture) is running before every test and starts process if it was terminated after previous test.
0.4.14
Bugfix: Now we don’t overwrite postgresql config in postgres_proc
0.4.13
Bugfix of rabbitmq_proc fixture - now it works with scope=function
0.4.12
Overrides SimpleExecutor’s behavior with a try of more gentle terminating subprocess before killing it.
Deprecate scope for mysqldb fixture and change it to function by default.
RabbitMQ factories support (multiple rabbit fixtures).
0.4.10
Postgresql multiple versions proper support
Default timeouts and waits for process executors
0.4.8
introduced Elasticsearch fixture
0.4.6
mysql fixture now uses factories
0.4.4
postgresql fixtures and fixture factories
small code quality improvements
pylama code check
0.4.3
splits rabbitmq fixture into process/client fixtures
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pytest-dbfixtures-0.4.21.tar.gz
.
File metadata
- Download URL: pytest-dbfixtures-0.4.21.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a78fba08d29888a54b1f7b4ec1a47f4cd0871f709e414af156fc530e69a207 |
|
MD5 | cb255c348625502264a4895613a772c5 |
|
BLAKE2b-256 | e3a71a4db2e10c183468a7e86a4191c4e517ac040eb3330c874cc9035089db05 |