Databases fixtures plugin for py.test.
Project description
pytest-dbfixtures
=================
.. image:: https://travis-ci.org/ClearcodeHQ/pytest-dbfixtures.png?branch=master
:target: https://travis-ci.org/ClearcodeHQ/pytest-dbfixtures
:alt: Tests for pytest-dbfixtures
.. image:: https://pypip.in/v/pytest-dbfixtures/badge.png?cache_buster=0.4.22
:target: https://crate.io/packages/pytest-dbfixtures/
:alt: Latest PyPI version
.. image:: https://pypip.in/d/pytest-dbfixtures/badge.png?cache_buster=0.4.22
:target: https://crate.io/packages/pytest-dbfixtures/
:alt: Number of PyPI downloads
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
-------
.. sourcecode:: bash
$ pip install --upgrade pytest-dbfixtures
How to use
----------
Please see `documentation <http://pytest-dbfixtures.readthedocs.org/en/latest/howtouse.html>`_
CHANGES
=======
unreleased
------
* Fix kill method (GentleKillingExecutor)
0.4.23
-------
------
* 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
=================
.. image:: https://travis-ci.org/ClearcodeHQ/pytest-dbfixtures.png?branch=master
:target: https://travis-ci.org/ClearcodeHQ/pytest-dbfixtures
:alt: Tests for pytest-dbfixtures
.. image:: https://pypip.in/v/pytest-dbfixtures/badge.png?cache_buster=0.4.22
:target: https://crate.io/packages/pytest-dbfixtures/
:alt: Latest PyPI version
.. image:: https://pypip.in/d/pytest-dbfixtures/badge.png?cache_buster=0.4.22
:target: https://crate.io/packages/pytest-dbfixtures/
:alt: Number of PyPI downloads
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
-------
.. sourcecode:: bash
$ pip install --upgrade pytest-dbfixtures
How to use
----------
Please see `documentation <http://pytest-dbfixtures.readthedocs.org/en/latest/howtouse.html>`_
CHANGES
=======
unreleased
------
* Fix kill method (GentleKillingExecutor)
0.4.23
-------
------
* 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
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
pytest-dbfixtures-0.4.23.tar.gz
(14.2 kB
view details)
Built Distribution
File details
Details for the file pytest-dbfixtures-0.4.23.tar.gz
.
File metadata
- Download URL: pytest-dbfixtures-0.4.23.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df5a606902f77d5e87d1b1bdfc050075ff905744153c75a3404d48148f052805 |
|
MD5 | 2c6a1c80e7b6c9da6e85ecc350b34705 |
|
BLAKE2b-256 | 01e25de6a3bec92bbb5de0677d4fea41b748b4fb1580cc0180d0e1c2594c58b3 |
File details
Details for the file pytest_dbfixtures-0.4.23-py2-none-any.whl
.
File metadata
- Download URL: pytest_dbfixtures-0.4.23-py2-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba3f1a9658ebd2863e1596882a3e652a8884092c28f74c5fb594b9142b3c0ec |
|
MD5 | 08c4381a90fac158abafe7cd27997c49 |
|
BLAKE2b-256 | 824de4c9d5433d40ca481ebac2477750d86dd32b01de42c4c85a93a9bda21787 |