summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMauricio Villegas <mauricio_ville@yahoo.com>2020-10-30 13:59:45 +0100
committerGitHub <noreply@github.com>2020-10-30 12:59:45 +0000
commit470ad94cd10d058fcf74e4e3487a22ec27fbf106 (patch)
tree7c9ffc0b373dd22a9abf03b9a900c144ed85fabd /tests
parentb5ff4dc6b576e83818bef74d5f66d4e01913a858 (diff)
downloadtox-git-470ad94cd10d058fcf74e4e3487a22ec27fbf106.tar.gz
Parse [tox:testenv] sections in setup.cfg (#1724)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/config/test_config.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py
index d53f9cf8..30804b09 100644
--- a/tests/unit/config/test_config.py
+++ b/tests/unit/config/test_config.py
@@ -91,6 +91,24 @@ class TestVenvConfig:
envconfig = config.envconfigs["dev"]
assert envconfig.envdir == config.toxworkdir.join("foobar")
+ def test_envdir_set_manually_setup_cfg(self, tmpdir, newconfig):
+ config = newconfig(
+ [],
+ """
+ [tox:tox]
+ envlist = py36,py37
+ [tox:testenv]
+ envdir = dev
+ [tox:testenv:py36]
+ envdir = dev36
+ """,
+ filename="setup.cfg",
+ )
+ envconfig = config.envconfigs["py36"]
+ assert envconfig.envdir == tmpdir.join("dev36")
+ envconfig = config.envconfigs["py37"]
+ assert envconfig.envdir == tmpdir.join("dev")
+
def test_force_dep_version(self, initproj):
"""
Make sure we can override dependencies configured in tox.ini when using the command line