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 | d5d42e21988896981f2028b1d986f13c3b5cbeb8 (patch) | |
tree | 38480a073fd1811a07105d76a08f09a0237d0bfd /tests | |
parent | 809e11e42c0526fc1893e940b68c8011cf368459 (diff) | |
download | tox-d5d42e21988896981f2028b1d986f13c3b5cbeb8.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 7cbb656..efbbc80 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([], "") |