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.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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7fb14ed83a5cca4489bcfcfa21995c5750c00833b806748d7917cf97d0f7f44 |
|
MD5 | 14f56145325149ff791feb02617fd829 |
|
BLAKE2b-256 | 1ef5e6f2ad77aba65e8719e66e201fdbdfaa00f40b371e57d2a32544d00b0558 |
Close
Hashes for pytest_docker_fixtures-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f2cf9527cf487e37472478bf743507724a8f03a4f87e52711c896e1d180065 |
|
MD5 | b1841df3f038429648d6a151afc367e8 |
|
BLAKE2b-256 | 53bf0783cf2dcec0ad36a4baacadf7ff9cc52509ec5e6aca320fca0137d98441 |