From 2a0e7bc17f932e33ef9c437760ae2f9f60b46390 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 15 Feb 2023 21:15:17 -0800 Subject: feat: add extend_exclude option --- tests/test_config.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') 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.""" -- cgit v1.2.1