diff options
author | loic <loic@dachary.org> | 2017-01-07 14:39:44 +0100 |
---|---|---|
committer | loic <loic@dachary.org> | 2017-01-07 14:39:44 +0100 |
commit | c80eedd40b8650066928a94c7ae3680b38a10e67 (patch) | |
tree | 8604448885a2ec9c06f53509e75224e4a157b41e /tests/test_api.py | |
parent | f5587814d1aa983ad995b2c1acc391f6251ceda0 (diff) | |
download | python-coveragepy-c80eedd40b8650066928a94c7ae3680b38a10e67.tar.gz |
* --source and --include are mutually exclusive (take 2) #265
close #265
close #101
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 5618458..8beb630 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -579,6 +579,13 @@ class SourceOmitIncludeTest(OmitIncludeTestsMixin, CoverageTest): summary[k[:-3]] = v return summary + def test_source_include_exclusive(self): + lines = self.coverage_usepkgs(source=["pkg1"], include=["pkg2"]) + self.filenames_in(lines, "p1a p1b") + self.filenames_not_in(lines, "p2a p2b othera otherb osa osb") + out = self.stdout() + self.assertIn("--include is ignored", out) + def test_source_package_as_dir(self): # pkg1 is a directory, since we cd'd into tests/modules in setUp. lines = self.coverage_usepkgs(source=["pkg1"]) |