Skip to content

Commit

Permalink
Merge pull request #547 from sifuraz/envvars
Browse files Browse the repository at this point in the history
Verify that Issue #137 is fixed.
  • Loading branch information
obestwalter committed Jul 11, 2017
2 parents 6117a30 + f05e1cd commit ae02262
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_config.py
Expand Up @@ -334,6 +334,16 @@ def test_command_env_substitution(self, newconfig):
assert envconfig.commands == [["ls", "testvalue"]]
assert envconfig.setenv["TEST"] == "testvalue"

def test_command_env_substitution_global(self, newconfig):
"""Ensure referenced {env:key:default} values are substituted correctly."""
config = newconfig("""
[testenv]
setenv = FOO = bar
commands = echo {env:FOO}
""")
envconfig = config.envconfigs['python']
assert envconfig.commands == [["echo", "bar"]]


class TestIniParser:
def test_getstring_single(self, tmpdir, newconfig):
Expand Down

0 comments on commit ae02262

Please sign in to comment.