Merge pull request #4131 from aanand/test-environment-overrides-env-file
Test that values in 'environment' override env files
This commit is contained in:
commit
09540339e0
1 changed files with 9 additions and 0 deletions
|
|
@ -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': [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue