Package: pytest-dbfixtures
pytest-dbfixturesOverviewPytest dbfixtures was a pytest plugin that makes it a lot easier
to set up proper database or storage engine for testing.As of version 1.0.0 every process fixture got moved into it’s own pytest plugin for easier maintenance,
and pytest-dbfixture itself got converted into metapacakge.List of packages:pytest-elasticsearchpytest-postgresqlpytest-dynamodbpytest-rabbitmqpytest-mysqlpytest-redispytest-mongoPlease see individual packages on hot to use them, although their usage is pretty similar.CHANGES1.0.0[enhancements] removed all leftover code and limited documentation, directed to each indicidual packages.[enhancements] split out Redis fixtures into separate package. Seepytest-redis[enhancements] split out RabbitMQ fixtures into separate package. Seepytest-rabbitmq[enhancements] split out MySQL fixtures into separate package. Seepytest-mysql[enhancements] split out DynamoDB fixtures into separate package. Seepytest-dynamodb0.17.0[enhancement] split out PostgreSQL fixtures into separate package. Seepytest-postgresql[enhancement] split out MongoDB fixtures into separate package. Seepytest-mongo0.16.0[enhancements] Postgresql client fixture closes other postgresql connection to the database before droping database - prevents the fixture/tests from hanging in some cases[enhancements] mysql to use unique tmpdir option for mysql_* commands[enhancements] use semicolon to terminate postgresql CREATE/DROP DATABASE statements[bugfix] removed unneded dependency[enhancement] split out elasticsearch fixtures into separate package. Seepytest-elasticsearch[feature] use tmpfile.gettempdir instead of hardcoded /tmp directory0.15.0[fix] support for rabbitpy 0.27.x[feature] Random port selection ports accept tuples and sets. replace string representation [backward incompatible]0.14.3[feature] Add support for delayTransientStatuses flag (DynamoDB)0.14.2[fix] Update DynamoDB in howtouse0.14.1[fix] packaging/changelog fix0.14.0[feature] add fixture for DynamoDB0.13.1[bugfix] fix dbfixtures packaging0.13.0[feature] make it easier to support future postgresql out of the box[feature] support for postgresql 9.5[docs] add contribute guidelines[feature] add info about minimal version supported - closes #132[enhancements] - moved source code into src folder[feature] python3.5 compatibility[docs] enhance docs - refs #126[feature]  PGsql connection error on FreeBSD jailed environmentsIn FreeBSD jailed environments the loopback interface can not be used to
connect to pgsql, because it points to the loopback interface of the host and
not the jail.Thus, it seems to pgsql like the connection is comming from the ip address
assigned to the jail.This ensures that pgsql can be connected to from any host, when
run on a FreeBSD systems. This this package can be used in FreeBSD
jailed environments[feature] Use log destination param for pgsqlThis commit ensures thatstderris used for logging, by
specifying the command line parameter.On FreeBSD this is very important otherwise syslog will be used and
the db-fixtures will hang as it looks in the expected log file and
loops forever waiting for a “database is ready” entry to appear…log_destination=stderris default on most systems and can be set inpostgresql.confor given as an command line argument.Read more0.12.0[bugfix] mongodb fixture no longer removes any of system.* collections[bugfix] configured pytest-dbfixtures to work with pymlconf versions compatible with Python 30.11.0make pytest-dbfixtures compatible with mirakuru 0.5.00.10.0fix W503 pep8 errors, that appeared after new pylama got releasedupdate to be able to use pytest-dbfixtures with pymongo 3ability to properly use also beta versions of postgresql releases. (previously only stable versions were targeted)0.9.0add ability to set custom location for logs (might be useful for analysing logs from tests)added postgresql 9.4 to supported versions.0.8.2Use port number in default RabbitMQ node name.This allows using just the port=’?’ argument to rabbitmq_proc to run multiple
independent RabbitMQ instances for use with xdist to parallelize tests on a
single machine.Old versions of Redis notificationdisplays a message about old version of redis0.8.1Feature: random ports selection
Adds a possibility of passing ‘?’ in port= argument of process fixtures.Removes ‘port’ from db fixturesFixes postgres missing host - previously using config.postgresql.unixsocketdir0.7.0redisdb fixture allows to specify client connection classredisdb fixture uses now StrictRedis by default (backward incompatible)0.6.0replacedMySQLdbwith it’s forkmysqlclient- compatibility with python3renamed mysqldb fixture to mysql to keep it consistent with other client fixtures.replacedpikawith python 3 compatible rabbitpyremoved deprecated mysqldb_session/mysql_sessionbugfix of rabbitmq fixture: cast rabbitmq queues and exchanges to str due to pamq having problemsinternal changes: removed GentleKillingExecutor as mirakuru already implements same functionality0.5.2syntax fixes for python 3moved postgresql starting code into it’s own executorxdist distributed hosts testing bugfix (but xdist parallelization on one host won’t work)0.5.1make rabbitmq logs persistent0.5.0update mirakuru to min 0.2os.killpg to terminate processadd tests coverage on coveralls0.4.22remove creating old RABBITMQ env variables0.4.21remove elasticsearch home folder at process teardownset elasticsearch index.store.type to memory by defaultlocalized elasticsearch instance by defaultreplaced summon_process with mirakuru0.4.20RabbitMQ process fixture is session scopedrabbitmq fixture factory accepts custom teardown0.4.19StopRunningExecutor to simply return if process had been already killed.0.4.18MongoDB fixtures can be now initialized by factories0.4.17Bugfix: params in redis fixture0.4.16Add params to mysql fixture0.4.15Client fixtures now check if process (process fixture) is running before
every test and starts process if it was terminated after previous test.0.4.14Bugfix: Now we don’t overwrite postgresql config in postgres_proc0.4.13Bugfix of rabbitmq_proc fixture - now it works with scope=function0.4.12Overrides 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.10Postgresql multiple versions proper supportDefault timeouts and waits for process executors0.4.8introduced Elasticsearch fixture0.4.6mysql fixture now uses factories0.4.4postgresql fixtures and fixture factoriessmall code quality improvementspylama code check0.4.3splits rabbitmq fixture into process/client fixtures