mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 00:43:07 +02:00
Test: Added summary report error handling tests
This commit is contained in:
parent
52f13a97a7
commit
5cad0a0d4e
1 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,14 @@ class TestSummaryPercentage(TestCase):
|
|||
code, out, err = self.t("summary")
|
||||
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__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue