diff options
| author | Lukasz Balcerzak <lukaszbalcerzak@gmail.com> | 2013-06-20 21:05:30 +0200 |
|---|---|---|
| committer | Lukasz Balcerzak <lukaszbalcerzak@gmail.com> | 2013-06-20 21:05:30 +0200 |
| commit | 1335712c7a4e99a032f4254827dbf71324b34dbb (patch) | |
| tree | 93c63d52ba7a7d0e3b4e75deaa0e422341e11275 | |
| parent | f3b35574de59f5fb2e814a463318f5af5de1f11e (diff) | |
| download | tox-1335712c7a4e99a032f4254827dbf71324b34dbb.tar.gz | |
Added tests for envdir config
| -rw-r--r-- | tests/test_config.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 4d40960..dfb09e7 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -44,6 +44,22 @@ class TestVenvConfig: assert dep2.indexserver.name == "xyz" assert dep2.indexserver.url == "xyz_repo" + def test_envdir_set_manually(self, tmpdir, newconfig): + config = newconfig([], """ + [testenv:devenv] + envdir = devenv + """) + envconfig = config.envconfigs['devenv'] + assert envconfig.envdir == tmpdir.join('devenv') + + def test_envdir_set_manually_with_substitutions(self, tmpdir, newconfig): + config = newconfig([], """ + [testenv:devenv] + envdir = {toxworkdir}/foobar + """) + envconfig = config.envconfigs['devenv'] + assert envconfig.envdir == config.toxworkdir.join('foobar') + class TestConfigPackage: def test_defaults(self, tmpdir, newconfig): config = newconfig([], "") |
