summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorÉric Larivière <elarivie@users.noreply.github.com>2021-01-30 17:55:11 -0500
committerGitHub <noreply@github.com>2021-01-30 17:55:11 -0500
commita0f6692f5cc9344ae790300dcc0cf743ac9abbd3 (patch)
tree9884b4de9221850ffe5a10f919322d2ffeabdcef /tests/test_cmdline.py
parent0143891b04c0c800fe1a508ab424cbe825f4210b (diff)
downloadpython-coveragepy-git-a0f6692f5cc9344ae790300dcc0cf743ac9abbd3.tar.gz
Add combine --keep (#1110)
* Add combine --keep Related to https://github.com/nedbat/coveragepy/issues/1108 * Fix unit tests * Fix line too long * Fix line too long
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 374adb0d..3b11881b 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -218,20 +218,20 @@ class CmdLineTest(BaseCmdLineTest):
# coverage combine with args
self.cmd_executes("combine datadir1", """\
cov = Coverage()
- cov.combine(["datadir1"], strict=True)
+ cov.combine(["datadir1"], strict=True, keep=False)
cov.save()
""")
# coverage combine, appending
self.cmd_executes("combine --append datadir1", """\
cov = Coverage()
cov.load()
- cov.combine(["datadir1"], strict=True)
+ cov.combine(["datadir1"], strict=True, keep=False)
cov.save()
""")
# coverage combine without args
self.cmd_executes("combine", """\
cov = Coverage()
- cov.combine(None, strict=True)
+ cov.combine(None, strict=True, keep=False)
cov.save()
""")
@@ -239,12 +239,12 @@ class CmdLineTest(BaseCmdLineTest):
# https://github.com/nedbat/coveragepy/issues/385
self.cmd_executes("combine --rcfile cov.ini", """\
cov = Coverage(config_file='cov.ini')
- cov.combine(None, strict=True)
+ cov.combine(None, strict=True, keep=False)
cov.save()
""")
self.cmd_executes("combine --rcfile cov.ini data1 data2/more", """\
cov = Coverage(config_file='cov.ini')
- cov.combine(["data1", "data2/more"], strict=True)
+ cov.combine(["data1", "data2/more"], strict=True, keep=False)
cov.save()
""")