pytest-dbfixtures
Overview
py.test clean fixtures for: postgresql, mysql, redis, mongo, elasticsearch and rabbitmq.
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.6.0
replaced MySQLdb with it’s fork mysqlclient - compatibility with python3
renamed mysqldb fixture to mysql to keep it consistent with other client fixtures.
replaced pika with python 3 compatible rabbitpy
removed deprecated mysqldb_session/mysql_session
bugfix of rabbitmq fixture: cast rabbitmq queues and exchanges to str due to pamq having problems
internal changes: removed GentleKillingExecutor as mirakuru already implements same functionality
0.5.2
syntax fixes for python 3
moved postgresql starting code into it’s own executor
xdist distributed hosts testing bugfix (but xdist parallelization on one host won’t work)
0.5.1
make rabbitmq logs persistent
0.5.0
update mirakuru to min 0.2
os.killpg to terminate process
add tests coverage on coveralls
0.4.22
remove creating old RABBITMQ env variables
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
Metadata
Release files for pytest-dbfixtures 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-dbfixtures-0.6.0.tar.gz | 14.8 kB | Without provenance | Details for pytest-dbfixtures-0.6.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_dbfixtures-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_dbfixtures-0.6.0-py3-none-any.whl |
| pytest_dbfixtures-0.6.0-py2-none-any.whl | Python 2 | none | any | Details for pytest_dbfixtures-0.6.0-py2-none-any.whl |
Total release size: 73.6 kB
Release files / pytest-dbfixtures-0.6.0.tar.gz
| Download URL | pytest-dbfixtures-0.6.0.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fef94def38f91605ec8a07f8dbeae9c7592574621373bf4c4af66d65afea253e
|
|
BLAKE2b-256 checksum How to use checksums |
a8a2a2d8323b691f5570e5f79fc93a65c32ec6ecb4102d8a98569cccf816af2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pytest_dbfixtures-0.6.0-py3-none-any.whl
| Download URL | pytest_dbfixtures-0.6.0-py3-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
489939d4cb445a9165eb6ede518237e5153d487964526255674e59fa8215a272
|
|
BLAKE2b-256 checksum How to use checksums |
3cbd1dd764b432dd853b597ac5fc28f9fa0d568f1f47dbe944feb5898f1eee3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pytest_dbfixtures-0.6.0-py2-none-any.whl
| Download URL | pytest_dbfixtures-0.6.0-py2-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ee2723ec82893d2bcd9fe8f4656f2d20c78bd768107235b8fbd5f64e3844cb07
|
|
BLAKE2b-256 checksum How to use checksums |
f09a444fcffc95f60465eb7e4dfaf378a29bf86ec085ea16c566a1f9bf11192e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytest-dbfixtures 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.