summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-21 07:19:17 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-21 07:19:17 -0500
commite510ab475ad293a43edfe8c7960bb32e9457bb2a (patch)
treee115666aa19fe539881534ad12c1522e103f68a5
parent3cd00401c7d6a43be94850bc8fe2c27c42237308 (diff)
downloadpython-coveragepy-e510ab475ad293a43edfe8c7960bb32e9457bb2a.tar.gz
Add an explicit test of the source= rc setting.
-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 5667e93..2f32c52 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -231,6 +231,7 @@ class ConfigFileTest(CoverageTest):
parallel = on
include = a/ , b/
concurrency = thread
+ source = myapp
plugins =
plugins.a_plugin
plugins.another
@@ -300,6 +301,7 @@ class ConfigFileTest(CoverageTest):
self.assertTrue(cov.config.cover_pylib)
self.assertTrue(cov.config.parallel)
self.assertEqual(cov.config.concurrency, "thread")
+ self.assertEqual(cov.config.source, ["myapp"])
self.assertEqual(cov.get_exclude_list(), ["if 0:", r"pragma:?\s+no cover", "another_tab"])
self.assertTrue(cov.config.ignore_errors)