summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorreybog90 <reybog90@o2.pl>2019-10-30 20:04:20 +0100
committerNed Batchelder <ned@nedbatchelder.com>2019-11-01 06:36:13 -0400
commit9b11268c358040abf7384702c3bc0e863ab753c5 (patch)
treee657af6f7eb583354f41c455bee639aaaf9a39fa /tests/test_config.py
parent49e06d33ea63d8e3e44ab5b69d713783551dfaa9 (diff)
downloadpython-coveragepy-git-9b11268c358040abf7384702c3bc0e863ab753c5.tar.gz
Optionally skip empty files in reports
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index ebea18a7..fcbac816 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -311,6 +311,7 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest):
show_missing= TruE
skip_covered = TruE
+ skip_empty =TruE
[{section}html]
@@ -386,6 +387,7 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest):
self.assertEqual(cov.config.plugins, ["plugins.a_plugin", "plugins.another"])
self.assertTrue(cov.config.show_missing)
self.assertTrue(cov.config.skip_covered)
+ self.assertTrue(cov.config.skip_empty)
self.assertEqual(cov.config.html_dir, r"c:\tricky\dir.somewhere")
self.assertEqual(cov.config.extra_css, "something/extra.css")
self.assertEqual(cov.config.html_title, "Title & nums # nums!")