mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added non-color ghistory chart tests.
This commit is contained in:
parent
65347b7a21
commit
dbabcdfed4
1 changed files with 7 additions and 0 deletions
|
@ -64,6 +64,10 @@ class TestHistoryMonthly(TestCase):
|
|||
self.assertRegexpMatches(out, "\s7.+\s1.+")
|
||||
self.assertRegexpMatches(out, "\s2.+\s3.+\s3.+")
|
||||
|
||||
code, out, err = self.t("ghistory.monthly")
|
||||
self.assertRegexpMatches(out, "2015 January\s+\++X+\s")
|
||||
self.assertRegexpMatches(out, "\s+February\s+\++X+\-+")
|
||||
|
||||
|
||||
class TestHistoryAnnual(TestCase):
|
||||
@classmethod
|
||||
|
@ -98,6 +102,9 @@ class TestHistoryAnnual(TestCase):
|
|||
self.assertRegexpMatches(out, "\s7.+\s1.+")
|
||||
self.assertRegexpMatches(out, "\s2.+\s3.+\s3.+")
|
||||
|
||||
code, out, err = self.t("ghistory.annual")
|
||||
self.assertRegexpMatches(out, "2014\s+\++X+\s")
|
||||
self.assertRegexpMatches(out, "2015\s+\++X+\-+")
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue