Injecting os.environ in Environment instance happens outside of init method
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
1506f997de
commit
12ad3ff301
5 changed files with 29 additions and 19 deletions
|
|
@ -90,7 +90,9 @@ class DockerClientTestCase(unittest.TestCase):
|
|||
if 'command' not in kwargs:
|
||||
kwargs['command'] = ["top"]
|
||||
|
||||
kwargs['environment'] = resolve_environment(kwargs, Environment())
|
||||
kwargs['environment'] = resolve_environment(
|
||||
kwargs, Environment.from_env_file(None)
|
||||
)
|
||||
labels = dict(kwargs.setdefault('labels', {}))
|
||||
labels['com.docker.compose.test-name'] = self.id()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue