Skip to main content

pytest docker fixtures

Project description

Provide various service pytest fixtures.


pip install pytest-docker-fixtures


In your, add the following:

pytest_plugins = [‘pytest_docker_fixtures’]

And to use the fixtures:

def test_foobar(redis):

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
    '', '6.2.4')

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_docker_fixtures-1.2.9-py3-none-any.whl (9.6 kB) Copy SHA256 hash SHA256 Wheel py3
pytest-docker-fixtures-1.2.9.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page