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.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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd7c30bdbec12a10c3c236cdee7c13100c6d0c5c931d8f0fe1da1739a78ed35d |
|
MD5 | ec4d90e592515f3bc5c1e0d8bcc37c27 |
|
BLAKE2b-256 | ac0f9765c8edda25642f9625f9f5fc4f4c08c495f871919887af3811cade78f3 |
Hashes for pytest_docker_fixtures-1.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e5ab42f65a63ca25912c1e371c5e7ade8f04e76d7d1ab8f56960c950e3af6d |
|
MD5 | ae2725460459ff66a7360c526fa537a8 |
|
BLAKE2b-256 | 7a4c95ccbd334691ad66ea36524bc9d5b827f5ac37445e3a207e5069185821b1 |