Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guillotinaweb/pytest-docker-fixtures
https://github.com/guillotinaweb/pytest-docker-fixtures
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/guillotinaweb/pytest-docker-fixtures
- Owner: guillotinaweb
- Created: 2018-06-11T03:17:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T14:39:28.000Z (7 months ago)
- Last Synced: 2024-09-20T13:06:12.585Z (about 2 months ago)
- Language: Python
- Size: 117 KB
- Stars: 18
- Watchers: 10
- Forks: 14
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
Awesome Lists containing this project
README
Introduction
============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):
passAvailable fixtures
------------------PRs welcome!
- cockroach (require to be installed with `pip install pytest-docker-fixtures[pg]`)
- es (elasticsearch)
- etcd
- kafka (require to be installed with `pip install pytest-docker-fixtures[kafka]`)
- memcached (require to be installed with `pip install pytest-docker-fixtures[memcached]`)
- minio
- mysql (require to be installed with `pip install pytest-docker-fixtures[mysql]`)
- pg (require to be installed with `pip install pytest-docker-fixtures[pg]`)
- rabbitmq (require to be installed with `pip install pytest-docker-fixtures[rabbitmq]`)
- redis
- stripe (stripemock)
- emqx
- influxdbConfiguring 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={}
)