diff options
author | holger krekel <holger@merlinux.eu> | 2014-09-23 16:04:03 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2014-09-23 16:04:03 +0200 |
commit | 556f90494afef6373bef80b0cc17129970485f9a (patch) | |
tree | 9db1ecc4f4c6ce0f640c460521d4eeeecc343431 /tests | |
parent | e20afdf4f05503bbb06402d1ff91efda892943d0 (diff) | |
download | tox-git-556f90494afef6373bef80b0cc17129970485f9a.tar.gz |
fix issue188 make boolean config vars use the default if the config file
specifies an empty string
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 7cbb656f..efbbc800 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -882,6 +882,21 @@ class TestConfigTestEnv: for name, config in configs.items(): assert config.basepython == 'python%s.%s' % (name[2], name[3]) + @pytest.mark.issue188 + def test_factors_in_boolean(self, newconfig): + inisource=""" + [tox] + envlist = py{27,33} + + [testenv] + recreate = + py27: True + """ + configs = newconfig([], inisource).envconfigs + assert configs["py27"].recreate + assert not configs["py33"].recreate + + class TestGlobalOptions: def test_notest(self, newconfig): config = newconfig([], "") |