pytest docker fixtures
Project description
Provide various service pytest fixtures.
Install
pip install pytest-docker-fixtures
Usages
In your conftest.py, add the following:
pytest_plugins = [‘pytest_docker_fixtures’]
And to use the fixtures:
- def test_foobar(redis):
pass
Available fixtures
PRs welcome!
redis
etcd
pg(require to be installed with pip install pytest-docker-fixtures[pg])
cockroach(require to be installed with pip install pytest-docker-fixtures[pg])
es
Configuring custom images
You can also configure custom images to use:
from pytest_docker_fixtures import images images.configure( 'elasticsearch', 'docker.elastic.co/elasticsearch/elasticsearch-platinum', '6.2.4')
1.2.6 (2018-11-15)
Fix use of optional dependency [vangheem]
1.2.5 (2018-11-13)
Add support for Kafka [ableeb]
1.2.4 (unreleased)
Add support for RabbitMQ [davidonna]
1.2.3 (2018-06-10)
bump
1.2.2 (2018-05-06)
Fix es when using 6 [vangheem]
1.2.1 (2018-05-05)
Fix Elasticsearch image [vangheem]
1.2.0 (2018-05-05)
Be able to configure custom docker images [vangheem]
1.1.0 (2018-04-03)
Add Elasticsearch fixture [vangheem]
1.0.1 (2018-03-12)
release
1.0.0 (2018-03-12)
initial release
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
Built Distribution
Hashes for pytest-docker-fixtures-1.2.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7a338a512b153cff12c8ea1040a1cef49401df0a4d2c6e0fbe522d3eb10068 |
|
MD5 | fa45ba6c33a65e277855fbee6d5c2cf7 |
|
BLAKE2b-256 | 399eccc6742fcae8a2a05670b7cc55c85b0d7bd8220d145260f68fdde4d6305e |
Hashes for pytest_docker_fixtures-1.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b2c5f8be8b41b7aa67ea9318c2f9ba524d3413b21f93952b8143cfd228ed75 |
|
MD5 | f8748ea9131bea7b4c92e4f53415adda |
|
BLAKE2b-256 | 08988cd6fac60cf3469e678a542112dbaec5bbfb1b935778a1242aae7ff331e0 |