diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-16 18:58:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-16 20:38:41 -0400 |
commit | fcd516438e393ed85438daaddddc570ec0627ad2 (patch) | |
tree | ec81fa5544568596fbfae04de9fd6dbd2fd12381 /tests/test_api.py | |
parent | 65ea37a09eaf9f68271181c820e3389cddb1baa6 (diff) | |
download | python-coveragepy-git-fcd516438e393ed85438daaddddc570ec0627ad2.tar.gz |
Put this helper in the right place
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index b44a5d34..ab9f9cf6 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -732,13 +732,8 @@ class TestRunnerPluginTest(CoverageTest): def test_nose_plugin_with_erase(self): self.pretend_to_be_nose_with_cover(erase=True) - def test_pytestcov_parallel(self): - self.pretend_to_be_pytestcov(append=False) - - def test_pytestcov_parallel_append(self): - self.pretend_to_be_pytestcov(append=True) - def pretend_to_be_pytestcov(self, append): + """Act like pytest-cov.""" self.make_file("prog.py", """\ a = 1 b = 2 @@ -769,6 +764,12 @@ class TestRunnerPluginTest(CoverageTest): self.assert_file_count(".coverage", 0) self.assert_file_count(".coverage.*", 1) + def test_pytestcov_parallel(self): + self.pretend_to_be_pytestcov(append=False) + + def test_pytestcov_parallel_append(self): + self.pretend_to_be_pytestcov(append=True) + class ReporterDeprecatedAttributeTest(CoverageTest): """Test that Reporter.file_reporters has been deprecated.""" |