summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorMatt Bachmann <bachmann.matt@gmail.com>2019-07-08 23:09:38 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-08-31 07:24:08 -0400
commit9a78a80aaf8f8161b857ebf3cf02dd511181dd07 (patch)
treed73603d17fc5269a3b8199085bf67c436d99aedf /tests/test_config.py
parent790f0b30010a3a1f68f4fa7c172ce3b31c7c4b24 (diff)
downloadpython-coveragepy-git-9a78a80aaf8f8161b857ebf3cf02dd511181dd07.tar.gz
Create a JSON report
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 7b019f94..ebea18a7 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -332,6 +332,10 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest):
hello = world
; comments still work.
names = Jane/John/Jenny
+
+ [{section}json]
+ pretty_print = True
+ show_contexts = True
"""
# Just some sample setup.cfg text from the docs.
@@ -399,6 +403,8 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest):
'names': 'Jane/John/Jenny',
})
self.assertEqual(cov.config.get_plugin_options("plugins.another"), {})
+ self.assertEqual(cov.config.json_show_contexts, True)
+ self.assertEqual(cov.config.json_pretty_print, True)
def test_config_file_settings(self):
self.make_file(".coveragerc", self.LOTSA_SETTINGS.format(section=""))