NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2713 most downloaded on PyPI
Simple pytest fixtures for Docker and Docker Compose based tests
Last release 10 months ago
12 Nov 2025
Release timing varies
gaps range from 2 weeks to 13 months
Most releases are documented
notes for 27 of 34 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
34 releases · first in 2017
ci improvements by @augi in #128
chore(deps): pytest 9.x allowed by @augi in #127
One column per quarter.
Fix mypy error in the plugin by @s-t-e-v-e-n-k in #125
Full Changelog: v3.2.2...v3.2.3
fix: docker host doesn't need to start with tcp:// by @lexi-k in #121
Full Changelog: v3.2.1...v3.2.2
Fix non-existing docker_setup_command into docker_setup by @alexbarcelo in #118
Full Changelog: v3.2.0...v3.2.1
Add option to ignore stderr when executing commands by @rabbull in #115
Document how to use multiple compose files by @edgarrmondragon in #113
Full Changelog: v3.1.1...v3.1.2
Type annotation for docker_compose_file fixed.
Type annotation for docker_compose_file fixed.
Nothing published for this version
Python 3.8+ is now required, and Python 3.6 and 3.7 support was dropped. This comes with pytest v8 support.
Python 3.8+ is now required, and Python 3.6 and 3.7 support was dropped. This comes with pytest v8 support.
Ability to supply multiple commands for docker_setup and docker_cleanup, without breaking change
Ability to supply multiple commands for docker_setup and docker_cleanup, without breaking change (#99)
Configurable containers scope.
Configurable containers scope.
Nothing published for this version
Default command changed from docker-compose to docker compose, so the V2 is the default one.
Breaking changes:
Set dependency on attrs to be the same as in pytest
Chore:
attrs to be the same as in pytestDefault behavior is not to install docker-compose at all when installing pytest-docker with PIP. Use the docker-compose-v1 extra.
Breaking changes:
docker-compose at all when
installing pytest-docker with PIP. Use the docker-compose-v1 extra.Feat:
docker_compose_command that should return docker compose.In get_docker_ip(), if DOCKER_HOST is using the unix: scheme then return "127.0.0.1"
Feat:
DOCKER_HOST is using the unix: scheme then return "127.0.0.1"Add docker_setup fixture to allow custom setup actions for docker-compose (contributed by @raddessi)
Changes:
docker_setup fixture to allow custom setup actions for docker-compose
(contributed by @raddessi)relax pytest version constraint to support v7
Changes:
Ensure that Docker cleanup is executed even with after tests have failed
Changes:
Allow higher version of attrs (21.0)
Changes:
attrs (21.0)- Changes: - Allow higher version of attrs
attrsChanges: - Drop Python3.5 support
Changes: - Drop Python3.5 support
Add the docker_cleanup fixture to allow custom cleanup actions for docker-compose
Changes:
- Add the docker_cleanup fixture to allow custom cleanup actions for
docker-compose
Remove support for Python2 (couple of small changes regarding bytes/strings) Changing package description files
Remove support for Python2 (couple of small changes regarding bytes/strings) Changing package description files
migrate to setup.cfg/setup.py combination
add pylint and pycodestyle checks
Changing TravisCI configuration
add tests for Python versions 3.5 to 3.8
add PYPi deployment section
Move some things around.
Fixes #41
Changes:
docker-compose and pytestpytest-runner to run package testsUpdate README Update travis settings
Update README Update travis settings
Fix description content type in setup.cfg
setup.cfgskip_cleanup option to travis-ci settingsNothing published for this version
Added ability to return list of files from docker_compose_file fixture
docker_compose_file fixtureNothing published for this version
Nothing published for this version
Added --build option to docker-compose up command to automatically rebuild local containers
--build option to docker-compose up command to automatically
rebuild local containersNothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →