mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Fix filter for summary when only a date is given
- add test
This commit is contained in:
parent
772c5d4946
commit
28c39f8f7e
2 changed files with 16 additions and 1 deletions
|
@ -91,6 +91,21 @@ W10 2017-03-09 Thu @3 Tag2 11:38:39 11:45:35 0:06:56
|
|||
0:20:52
|
||||
""", out)
|
||||
|
||||
def test_with_date_filter(self):
|
||||
self.t("track 2017-03-09T10:00:00 - 2017-03-09T11:00:00")
|
||||
self.t("track 2017-03-10T10:00:00 - 2017-03-10T11:00:00")
|
||||
self.t("track 2017-03-11T10:00:00 - 2017-03-11T11:00:00")
|
||||
|
||||
code, out, err = self.t("summary 2017-03-10 :ids")
|
||||
|
||||
self.assertIn("""
|
||||
Wk Date Day ID Tags Start End Time Total
|
||||
--- ---------- --- -- ---- -------- -------- ------- -------
|
||||
W10 2017-03-10 Fri @2 10:00:00 11:00:00 1:00:00 1:00:00
|
||||
|
||||
1:00:00
|
||||
""", out)
|
||||
|
||||
def test_with_tag_filter(self):
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue