From 5ed12ec1c3c901b8bb984e6fc06b830194c4dd45 Mon Sep 17 00:00:00 2001 From: WouldYouKindly Date: Mon, 17 Jan 2022 16:11:39 +0300 Subject: [PATCH] Respect DOCKER_HOST env variable (and others along with it) --- pytest_hoverfly/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_hoverfly/base.py b/pytest_hoverfly/base.py index c628f46..43d3e5a 100644 --- a/pytest_hoverfly/base.py +++ b/pytest_hoverfly/base.py @@ -74,7 +74,7 @@ def get_container( ports: t.Optional[t.Dict[str, t.Optional[t.List[t.Dict[str, int]]]]] = None, image: str = IMAGE, timeout: float = 3.0, - docker_factory: t.Callable[[], DockerClient] = DockerClient, + docker_factory: t.Callable[[], DockerClient] = DockerClient.from_env, create_container_kwargs: t.Optional[t.Mapping[str, t.Any]] = None, ): external_service = Hoverfly.try_from_env(os.environ)