Pytest-docker

Latest version: v3.2.0

Safety actively analyzes 715170 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.0.0

Breaking changes:

- Default command changed from `docker-compose` to `docker compose`, so the V2
is the default one.

1.0.1

Chore:

- Set dependency on `attrs` to be the same as in `pytest`

1.0.0

Breaking changes:

- Default behavior is not to install `docker-compose` at all when
installing `pytest-docker` with PIP. Use the `docker-compose-v1` extra.

Feat:

- Add support for Docker Compose v2 via a new pytest fixture,
`docker_compose_command` that should return `docker compose`.

0.13.0

Feat:

- In get_docker_ip(), if `DOCKER_HOST` is using the `unix:` scheme then return "127.0.0.1"

0.12.0

Changes:

- Add `docker_setup` fixture to allow custom setup actions for docker-compose
(contributed by raddessi)

0.11.0

Changes:

- Add support for `pytest` v7 (contributed by skshetry)

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.