diff options
| author | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-28 23:15:25 +0300 |
|---|---|---|
| committer | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-28 23:15:25 +0300 |
| commit | b0e9ebec2c6ef3b12ce21309a4e816378cd9c043 (patch) | |
| tree | 3d6d583f021f296306574f3f017a8efa7f53cdf6 /tests/test_process.py | |
| parent | c6dfb5b69d8211fc25aca06dc2c97e492d9b334c (diff) | |
| download | python-coveragepy-b0e9ebec2c6ef3b12ce21309a4e816378cd9c043.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.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 4c3c363..3fcaa9c 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) |
