summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
authorIonel Cristian Maries <contact@ionelmc.ro>2015-06-28 23:15:25 +0300
committerIonel Cristian Maries <contact@ionelmc.ro>2015-06-28 23:15:25 +0300
commit040a2b502156f86ca24b6d7b295260888b290b27 (patch)
treecea7d065c964a072395ac90e10959fbd591eb9e4 /tests/test_process.py
parentd20a77c9cf1bdba8cf003f24681503313253389b (diff)
downloadpython-coveragepy-git-040a2b502156f86ca24b6d7b295260888b290b27.tar.gz
Add missing import. Add assertions for 'No data to report.' in output.
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 4c3c363f..3fcaa9cc 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -710,15 +710,18 @@ class FailUnderNoFilesTest(CoverageTest):
self.make_file(".coveragerc", "[report]\nfail_under = 99\n")
def test_report(self):
- st, _ = self.run_command_status("coverage report")
+ st, out = self.run_command_status("coverage report")
+ self.assertIn('No data to report.', out)
self.assertEqual(st, 1)
def test_xml(self):
- st, _ = self.run_command_status("coverage xml")
+ st, out = self.run_command_status("coverage xml")
+ self.assertIn('No data to report.', out)
self.assertEqual(st, 1)
def test_html(self):
- st, _ = self.run_command_status("coverage html")
+ st, out = self.run_command_status("coverage html")
+ self.assertIn('No data to report.', out)
self.assertEqual(st, 1)