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.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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90a110f031e77a09869247bcbe4b9650086e9522485bf0d3e259fb97953b1b5 |
|
MD5 | a19bcf2f739b51915f0608cc2658daae |
|
BLAKE2b-256 | 0c55eab88d64abc3a45f8c271909d40f0f5c2df8801f6d0c5320bfac50e6f1e4 |
Close
Hashes for pytest_docker_fixtures-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb86503b73a9dd2b5105ebac82fd6b684a0cd38a9632efd0a5f40309b715c3f9 |
|
MD5 | 0ca14f31f14c143f74a8c8b2e55d5255 |
|
BLAKE2b-256 | 8c06249c50e2d67d95ad539cb8990e91b2a3fc7c72639be8962a6107f5bbf38e |