mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
tests: Use updated unittest method
This commit is contained in:
parent
407d66d681
commit
02db131fa1
50 changed files with 315 additions and 315 deletions
10
test/stats.t
10
test/stats.t
|
@ -48,13 +48,13 @@ class TestStatisticsCommand(TestCase):
|
|||
self.t("log three")
|
||||
|
||||
code, out, err = self.t("stats")
|
||||
self.assertRegexpMatches(out, "Pending\s+1\n")
|
||||
self.assertRegexpMatches(out, "Completed\s+1\n")
|
||||
self.assertRegexpMatches(out, "Deleted\s+1\n")
|
||||
self.assertRegexpMatches(out, "Total\s+3\n")
|
||||
self.assertRegex(out, "Pending\s+1\n")
|
||||
self.assertRegex(out, "Completed\s+1\n")
|
||||
self.assertRegex(out, "Deleted\s+1\n")
|
||||
self.assertRegex(out, "Total\s+3\n")
|
||||
|
||||
code, out, err = self.t("stats rc._forcecolor:on")
|
||||
self.assertRegexpMatches(out, "Pending\s+1\n")
|
||||
self.assertRegex(out, "Pending\s+1\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue