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.10 (2019-02-28)
minio: configure a custom version of the image doesn’t work [masipcat]
minio: check() fails because Minio responds with status 403 [masipcat]
1.2.9 (2019-01-09)
Fix Minio returning port = None [masipcat]
1.2.8 (2019-01-03)
Add support for Minio [masipcat]
1.2.7 (2018-11-19)
ensure Kafka is available [ableeb]
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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b874d89adb5730bdca56c01bda45e030e3db3b6ec8ec648047a634fae96a3f92 |
|
MD5 | 098ec226328f1c438b3e632c296781d7 |
|
BLAKE2b-256 | eb05c12975330d5d35f076ffa308bd5741c59176a44b6211c6a3e19f19b16252 |
Hashes for pytest_docker_fixtures-1.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d8abde11d335bc88144642ad4d31a42afed4b0821bad300005f7780fa0bbad |
|
MD5 | c64b99ff5a9aa8a873c5802d6a137cf3 |
|
BLAKE2b-256 | 7a000ac74d03ec4d1f888b6be1a5920051910de83975438c3cfe88ba731de765 |