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.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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52dcb4307a3807ab6d8b20f2edd85da4571557ae1c07c191541c0adb69ac7060 |
|
MD5 | 61caa816553b67dcf1d6fe99940a96f2 |
|
BLAKE2b-256 | 972e42bc43d094e1a25f01f05a2684038dfb825dcd1f31a898f06140f4f34011 |
Close
Hashes for pytest_docker_fixtures-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a180e4e1f185eba6979a022e5a59e4463d58dcb3a7638c259100de5a1893f7d5 |
|
MD5 | 5a15e00a059d493572e1dfed8ae488c7 |
|
BLAKE2b-256 | 818f5dba29b6c3b662bcab3cfca1d5003aa9a5cefa57f91098079e7c3d549f5f |