Skip to main content

Databases fixtures plugin for py.test.

Project description

pytest-dbfixtures

Tests for pytest-dbfixtures Latest PyPI version Number of PyPI downloads

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.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


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.19.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

pytest_dbfixtures-0.4.19-py2-none-any.whl (24.9 kB view details)

Uploaded Python 2

File details

Details for the file pytest-dbfixtures-0.4.19.tar.gz.

File metadata

File hashes

Hashes for pytest-dbfixtures-0.4.19.tar.gz
Algorithm Hash digest
SHA256 03572a59b211f0336d3568ade91953c7f73628448cf7c8fa551886bf8af17793
MD5 794fb2b2a334572b42b418c49818904c
BLAKE2b-256 72f3e3c46ece07c91cbb6ff1fa4550ba34558ec14cdd747f6be10166420586f0

See more details on using hashes here.

File details

Details for the file pytest_dbfixtures-0.4.19-py2-none-any.whl.

File metadata

File hashes

Hashes for pytest_dbfixtures-0.4.19-py2-none-any.whl
Algorithm Hash digest
SHA256 52afbd74b6b88b4340bf376d75d94df6afbe15bba7bb39a8d2b78af3c7a2aede
MD5 2232d63c03c5c1292200f9b4599dff77
BLAKE2b-256 0bcd25bd919fb10f120edcfc9a9e52fbfcc600bcebeab17e6cfb050463b56993

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page