summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-11-03 10:17:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2019-11-03 21:27:42 -0500
commit25311c6caabed2f13da991dae52352c3c896a3e9 (patch)
tree347736ed68e204502d110bea0a8192ed3a2ffc5e /tests/test_config.py
parenta44e6e48abfdab8f5a7e457ae1e481005f7bdbe5 (diff)
downloadpython-coveragepy-git-25311c6caabed2f13da991dae52352c3c896a3e9.tar.gz
Expand environment variables in any part of a TOML config
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 49574241..3bd2fd2b 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -229,7 +229,7 @@ class ConfigTest(CoverageTest):
self.make_file("pyproject.toml", """\
[tool.coverage.run]
data_file = "$DATA_FILE.fooey"
- branch = true
+ branch = $BRANCH
[tool.coverage.report]
exclude_lines = [
"the_$$one",
@@ -239,6 +239,7 @@ class ConfigTest(CoverageTest):
"huh$${X}what",
]
""")
+ self.set_environ("BRANCH", "true")
self.set_environ("DATA_FILE", "hello-world")
self.set_environ("THING", "ZZZ")
cov = coverage.Coverage()