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
cockroach
kafka
minio
mysql(require to be installed with pip install pytest-docker-fixtures[mysql])
rabbitmq
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', env={}, options={})
1.3.12 (2021-08-30)
Add support for remote docker daemons [sunbit]
1.3.11 (2020-09-30)
fix release
1.3.10 (2020-09-30)
Add memcached docker image [lferran]
1.3.9 (2020-07-10)
Fix passing options to image configuration [gitcarbs]
1.3.8 (2020-07-02)
Stop hardcoding db, user, and password in Postgresql.check() [marshalium]
1.3.7 (2020-05-04)
Change psycopg2 dependency to psycopg2-binary
1.3.6 (2020-02-14)
Update to working postgres image after upstream 9.6 change
1.3.5 (2019-10-01)
minio: use random port (breaking change!) [masipcat]
1.3.4 (2019-09-04)
Be able to override with env variables [vangheem]
1.3.3 (2019-08-14)
Add support for MySQL [masipcat]
1.3.2 (2019-07-19)
Fix: custom max_wait_s option should not be passed to docker images [lferran]
1.3.1 (2019-07-19)
Allow configuring time to wait for image to be setup [lferran]
1.3.0 (2019-04-05)
Be able to configure more of image [vangheem]
Make sure ImportError is bubbled [vangheem]
1.2.10 (2019-02-28)
minio: configure a custom version of the image doesn’t work [masipcat]
minio: check() fails because Minio responds with status 403 [masipcat]
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.3.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b989a974aae96f5a3d5c369e5c77dd6e0bfe6717979f60bafbd24841480e96ff |
|
MD5 | adfbb88ba0d7029b22c50dcba0df4ce4 |
|
BLAKE2b-256 | 37541dc38fd275d8b415530d7136cfd4b058b9bcd2f1c5580e8af6f0e0e736e9 |
Hashes for pytest_docker_fixtures-1.3.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985c6658dd726610fa6d455c8541d2e8b27f0b83ad0e6ae60800a2540ec892af |
|
MD5 | 5c1f2ac12b1871a504b3cdedaf5dda9f |
|
BLAKE2b-256 | ed9a3fbd8af5e3372b6a719c51315a4ce575c8c74475860962221c6d1ccc2e99 |