summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py19
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'):