diff --git a/conf.py b/conf.py index 90d000bd..c9bae624 100644 --- a/conf.py +++ b/conf.py @@ -167,4 +167,5 @@ nitpick_ignore = [ ("py:class", "typing_extensions.Self"), + ("py:class", "docker.models.containers.ExecResult"), ] diff --git a/core/testcontainers/core/container.py b/core/testcontainers/core/container.py index 7049651e..e0456fa0 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -101,6 +101,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[str]]) -> Self: env_values = dotenv_values(env_file) for key, value in env_values.items():