Test: Added summary report error handling tests
This commit is contained in:
@@ -54,6 +54,14 @@ class TestSummaryPercentage(TestCase):
|
|||||||
code, out, err = self.t("summary")
|
code, out, err = self.t("summary")
|
||||||
self.assertIn(" 50%", out)
|
self.assertIn(" 50%", out)
|
||||||
|
|
||||||
|
code, out, err = self.t("summary rc._forcecolor:on")
|
||||||
|
self.assertIn(" 50%", out)
|
||||||
|
|
||||||
|
def test_summary_no_tasks(self):
|
||||||
|
"""Verify no tasks yields no report"""
|
||||||
|
code, out, err = self.t.runError("summary")
|
||||||
|
self.assertIn("No projects.", out)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
|
|||||||
Reference in New Issue
Block a user