summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2020-04-17 13:34:38 -0400
committerGitHub <noreply@github.com>2020-04-17 18:34:38 +0100
commit1343f3dc8c30cfe001cf3abf1cc9a139952056ea (patch)
tree709fa0756efcdc0e9bee5edf9d8d658606e2b3fb /tests
parentc102714b9c18b8109e128843fb73cc106b44a4c2 (diff)
downloadtox-git-1343f3dc8c30cfe001cf3abf1cc9a139952056ea.tar.gz
expand section names (#1545)
* expand section names * fix linting * Added changelog * trim whitespaces around factor names * added docs
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/config/test_config.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py
index 56e849e6..ba21a25b 100644
--- a/tests/unit/config/test_config.py
+++ b/tests/unit/config/test_config.py
@@ -859,6 +859,15 @@ class TestIniParser:
(msg,) = excinfo.value.args
assert msg == "key5: boolean value 'yes' needs to be 'True' or 'False'"
+ def test_expand_section_name(self, newconfig):
+ config = newconfig(
+ """
+ [testenv:custom-{one,two,three}-{four,five}-six]
+ """
+ )
+ assert "testenv:custom-one-five-six" in config._cfg.sections
+ assert "testenv:custom-{one,two,three}-{four,five}-six" not in config._cfg.sections
+
class TestIniParserPrefix:
def test_basic_section_access(self, newconfig):