{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Provides pytest fixture factories for declaratively defining Docker-based test environments, automating container creation, teardown, and dependency resolution across test scopes.","skillfed_tags":["docker-testing","pytest-plugin","integration-testing"],"use_cases":["Smoke-test a freshly built Docker image before release to verify it starts and responds correctly.","Integration test a microservice by spinning up dependent containers (database, cache, mock DNS) per test with automatic cleanup.","Run parallel integration tests across multiple CPU cores using pytest-xdist, with automatic port and resource name collision avoidance.","Reuse long-lived containers (session scope) across multiple test modules while recreating module-scoped resources between modules.","Test container restart behavior and recovery without manual container lifecycle management in test code."],"what_it_does":"pytest-docker-tools is a fixture factory library that lets you define Docker-based test environments declaratively in pytest, similar to docker-compose.yml syntax. Instead of writing boilerplate code to spin up containers for each test, you define fixtures once in conftest.py and inject them into tests; the library handles creation, teardown, and dependency resolution automatically. It supports fixture scoping (session, module, function), automatic port mapping, environment variable injection, and container restart operations.\n\nThe library is built on pytest and docker as its only runtime dependencies, making installation straightforward. It's designed for smoke testing Docker images and integration testing microservices, with explicit support for parallel test execution via pytest-xdist. Fixtures can be overridden per test module, and the library captures Docker logs on test failure for debugging.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem\u2014eliminating boilerplate for Docker-based testing. It's well-suited for teams running integration or smoke tests against containerized services. The permissive Apache-2.0 license poses no restriction. Install it if you're writing tests that need Docker containers."},"id":"pytest-docker-tools","links":{"html":"https://skillfed.io/packages/pytest-docker-tools","md":"https://skillfed.io/packages/pytest-docker-tools.md","pypi":"https://pypi.org/project/pytest-docker-tools/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-21","license_spdx":null,"license_treatment":"permissive","name":"pytest-docker-tools","python_support":"supports_current","summary":"Docker integration tests for pytest"},"popularity":{"monthly_downloads":1737976,"position":3603,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.1.10"}
