Merge pull request #4131 from aanand/test-environment-overrides-env-file

Test that values in 'environment' override env files
This commit is contained in:
Joffrey F 2016-11-15 14:18:54 -08:00 committed by GitHub
commit 09540339e0
1 changed files with 9 additions and 0 deletions

View File

@ -2493,6 +2493,15 @@ class EnvTest(unittest.TestCase):
{'ONE': '2', 'TWO': '1', 'THREE': '3', 'FOO': 'bar'},
)
def test_environment_overrides_env_file(self):
self.assertEqual(
resolve_environment({
'environment': {'FOO': 'baz'},
'env_file': ['tests/fixtures/env/one.env'],
}),
{'ONE': '2', 'TWO': '1', 'THREE': '3', 'FOO': 'baz'},
)
def test_resolve_environment_with_multiple_env_files(self):
service_dict = {
'env_file': [