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.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
Close
Hashes for pytest-docker-fixtures-1.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5479a19922e3384013cacb7815b6c9da1f85abf2f9025d47c3ce67ea4380e0e4 |
|
MD5 | fabff16b981ac79fa35e55f177765479 |
|
BLAKE2b-256 | 5c7dbe4a3171dc59a1cf49a60021c1318ffbed7f2d5899cddd92f6a3449ae6ba |
Close
Hashes for pytest_docker_fixtures-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f274b913f8cb7262fd794af4b2cbb6de1bc368dabae60b37fc99c6102e60331 |
|
MD5 | 44928935b1ddb3e1d1894f9c03567ddf |
|
BLAKE2b-256 | aeb43c05d304ba44a37e7cbff1743376e9b9aaa6bd93e158856a02c32871ee88 |