diff options
author | navyad <navyad.pro@gmail.com> | 2020-04-19 12:21:48 +0530 |
---|---|---|
committer | navyad <navyad.pro@gmail.com> | 2020-04-19 12:21:48 +0530 |
commit | d17e263fc2ea2f2b708ffff1f01ec2af7bcf58f9 (patch) | |
tree | 390231a701f7baa007765f11458f14d22d067fc0 /tests/test_process.py | |
parent | 7a4292dcd68e7b9d4d426d9f2eaf6f0535cdd97f (diff) | |
download | python-coveragepy-git-d17e263fc2ea2f2b708ffff1f01ec2af7bcf58f9.tar.gz |
message for fail-under
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index a9b8e00a..0428db75 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1236,13 +1236,13 @@ class FailUnderTest(CoverageTest): def test_report_43_is_not_ok(self): st, out = self.run_command_status("coverage report --fail-under=44") self.assertEqual(st, 2) - self.assertEqual(self.last_line_squeezed(out), "forty_two_plus.py 7 4 43%") + self.assertEqual(self.last_line_squeezed(out), "fail-under has failed") def test_report_42p86_is_not_ok(self): self.make_file(".coveragerc", "[report]\nprecision = 2") st, out = self.run_command_status("coverage report --fail-under=42.88") self.assertEqual(st, 2) - self.assertEqual(self.last_line_squeezed(out), "forty_two_plus.py 7 4 42.86%") + self.assertEqual(self.last_line_squeezed(out), "fail-under has failed") class FailUnderNoFilesTest(CoverageTest): |