pytest-docker icon indicating copy to clipboard operation
pytest-docker copied to clipboard

Docker-based integration tests

Results 23 pytest-docker issues
Sort by recently updated
recently updated
newest added

There are two cases when `docker_ip` fixture returns incorrect value: 1. Non-default docker context used. 2. Remote docker used via `ssh://...` schema instead of `tcp://`. I have an idea: ```python...

Currently, the code is fixed on using `docker compose` for managing services. Is there any interest in developing Swarm support as an addition? I'd probably chip in on that, since...

This provides a narrower exception to catch when calling `wait_until_responsive`. Context: when an entire testsuite relies on a service, I'd like to call `pytest.exit()` if it times out so that...

This allow custom options be passed to underlying subprocess.check_output invocations, like cwd. @pytest.fixture(scope='session') def docker_compose_subprocess_kwargs(): return {'cwd': '..'}

Trying to kill pytest with SIGINT (CTRL+C) causes docker, or it's network bridges, to stay alive. I discovered this when one of the surviving network bridges killed my internet connection...

Adds `get_logs()` to fetch container logs.

Getting the following error when using the ``docker_services`` fixture ``` Exception: Command docker compose -f "/tmp/pytest-of-xxx/pytest-1/docker-compose.yml" -p "pytest155540" up --build -d returned 125: """unknown shorthand flag: 'f' in -f ```...