We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7b42d commit 4a1520fCopy full SHA for 4a1520f
tests/containers/workbenches/workbench_image_test.py
@@ -1,3 +1,5 @@
1
+from __future__ import annotations
2
+
3
import functools
4
import http.cookiejar
5
import logging
@@ -92,12 +94,13 @@ def _connect(self) -> None:
92
94
finally:
93
95
result.close()
96
- def start(self):
97
+ def start(self, wait_for_readiness: bool = True) -> WorkbenchContainer:
98
super().start()
99
container_id = self.get_wrapped_container().id
100
docker_client = testcontainers.core.container.DockerClient().client
101
logging.debug(docker_client.api.inspect_container(container_id)['HostConfig'])
- self._connect()
102
+ if wait_for_readiness:
103
+ self._connect()
104
return self
105
106
0 commit comments