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.
with_envs
1 parent e9e40f9 commit e4ab159Copy full SHA for e4ab159
1 file changed
core/testcontainers/core/container.py
@@ -59,6 +59,10 @@ def with_env(self, key: str, value: str) -> Self:
59
self.env[key] = value
60
return self
61
62
+ def with_envs(self, **variables: str) -> Self:
63
+ self.env.update(variables)
64
+ return self
65
+
66
def with_env_file(self, env_file: Union[str, PathLike]) -> Self:
67
env_values = dotenv_values(env_file)
68
for key, value in env_values.items():
0 commit comments