diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-12-04 07:34:32 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-12-04 07:34:32 -0500 |
commit | a7da1fe548d261451f6ceabd2bde751b4f6c14ca (patch) | |
tree | 3b9731234b477b99332848deae005fb46b1c6f67 /tests/test_config.py | |
parent | b75575fd2cf3036d00624abbfc7d94f4f0c4aba8 (diff) | |
download | python-coveragepy-git-nedbat/configfile-simplification.tar.gz |
Remove special handling of config_file=".coveragerc". #788nedbat/configfile-simplification
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index fe9e001e..1b9a4137 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -575,19 +575,6 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest): def test_config_file_settings_in_toxini(self): self.check_config_file_settings_in_other_file("tox.ini", self.TOX_INI) - def check_other_config_if_coveragerc_specified(self, fname, contents): - """Check that config `fname` is read if .coveragerc is missing, but specified.""" - nested = self.LOTSA_SETTINGS.format(section="coverage:") - self.make_file(fname, nested + "\n" + contents) - cov = coverage.Coverage(config_file=".coveragerc") - self.assert_config_settings_are_correct(cov) - - def test_config_file_settings_in_setupcfg_if_coveragerc_specified(self): - self.check_other_config_if_coveragerc_specified("setup.cfg", self.SETUP_CFG) - - def test_config_file_settings_in_tox_if_coveragerc_specified(self): - self.check_other_config_if_coveragerc_specified("tox.ini", self.TOX_INI) - def check_other_not_read_if_coveragerc(self, fname): """Check config `fname` is not read if .coveragerc exists.""" self.make_file(".coveragerc", """\ @@ -671,12 +658,6 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest): with self.assertRaisesRegex(CoverageException, msg): coverage.Coverage(config_file=bad_file) - def test_nocoveragerc_file_when_specified(self): - cov = coverage.Coverage(config_file=".coveragerc") - self.assertFalse(cov.config.timid) - self.assertFalse(cov.config.branch) - self.assertEqual(cov.config.data_file, ".coverage") - def test_no_toml_installed_no_toml(self): # Can't read a toml file that doesn't exist. with coverage.optional.without('toml'): |