diff --git a/core/testcontainers/core/container.py b/core/testcontainers/core/container.py index b5c11818..bd5d6030 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -59,6 +59,10 @@ def with_env(self, key: str, value: str) -> Self: self.env[key] = value return self + def with_envs(self, **variables: str) -> Self: + self.env.update(variables) + return self + def with_env_file(self, env_file: Union[str, PathLike]) -> Self: env_values = dotenv_values(env_file) for key, value in env_values.items():