summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlpha Chen <alpha@kejadlen.dev>2023-02-15 21:15:17 -0800
committerNed Batchelder <ned@nedbatchelder.com>2023-02-22 17:02:19 -0500
commit2a0e7bc17f932e33ef9c437760ae2f9f60b46390 (patch)
tree1e7c2c09c05179c7378343dc2da221001229ba20 /tests
parent51f395dc29811cd7ab465c527a5a06514b0090b8 (diff)
downloadpython-coveragepy-git-2a0e7bc17f932e33ef9c437760ae2f9f60b46390.tar.gz
feat: add extend_exclude option
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 2ee5eae0..2befa2e3 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -449,6 +449,15 @@ class ConfigTest(CoverageTest):
with pytest.raises(ConfigError, match="No option 'foo' in section: 'xyzzy'"):
config.get("xyzzy", "foo")
+ def test_exclude_also(self) -> None:
+ self.make_file("pyproject.toml", """\
+ [tool.coverage.report]
+ exclude_also = ["foobar"]
+ """)
+ cov = coverage.Coverage()
+
+ assert cov.config.exclude_list == coverage.config.DEFAULT_EXCLUDE + ["foobar"]
+
class ConfigFileTest(UsingModulesMixin, CoverageTest):
"""Tests of the config file settings in particular."""