{"library":"pytest-docker","type":"library","category":null,"description":"pytest-docker provides simple pytest fixtures for testing applications that rely on Docker or Docker Compose services. It simplifies the setup and teardown of Docker containers or multi-container applications (defined via `docker-compose.yml`) for integration tests, automatically managing their lifecycle. The current version is 3.2.5, and it maintains an active release cadence with frequent updates.","language":"python","status":"active","version":"3.2.5","tags":["pytest","docker","testing","fixtures","docker-compose"],"install":[{"cmd":"pip install pytest-docker","imports":["def test_something(docker_compose):\n    # Access services via docker_compose fixture\n    ...","def test_something(docker_client):\n    # Access Docker client via docker_client fixture\n    ...","import pytest\nfrom pathlib import Path\n\n@pytest.fixture(scope=\"session\")\ndef docker_compose_file():\n    return str(Path(__file__).parent / \"docker-compose.yml\")","from pytest_docker.plugin import Services\n\ndef my_test_function(docker_compose: Services):\n    # Use for type hinting the docker_compose fixture\n    ..."]},{"cmd":"pip install pytest-docker 'docker-compose>=2.0.0; python_version >= \"3.10\"' 'docker-compose<2.0; python_version < \"3.10\"'","imports":[]}],"homepage":null,"github":"https://github.com/avast/pytest-docker","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pytest-docker/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":28,"avg_install_s":3.6,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pytest-docker/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}