mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#165: Add test for empty intervals at midnight
This commit is contained in:
parent
2976e43136
commit
4e08bcca4d
1 changed files with 12 additions and 0 deletions
|
@ -193,6 +193,18 @@ W10 2017-03-11 Sat @3 FOO 10:00:00 11:00:00 1:00:00
|
||||||
6:00:00
|
6:00:00
|
||||||
""", out)
|
""", out)
|
||||||
|
|
||||||
|
def test_with_empty_interval_at_start_of_day(self):
|
||||||
|
"""Summary should display empty intervals at midnight"""
|
||||||
|
self.t("track sod - sod")
|
||||||
|
code, out, err = self.t("summary :year")
|
||||||
|
self.assertRegexpMatches(out, """
|
||||||
|
Wk ?Date Day Tags ?Start ?End Time Total
|
||||||
|
[ -]+
|
||||||
|
W\d{1,2} \d{4}-\d{2}-\d{2} .{3} ?0:00:00 0:00:00 0:00:00 0:00:00
|
||||||
|
|
||||||
|
[ ]+0:00:00
|
||||||
|
""")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue