mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#21 Add implicit @1 to command 'untag'
- Extend interval assertions - Add interval assertions to tests for command 'tag' - Add interval assertions to tests for command 'untag'
This commit is contained in:
parent
c595132a9c
commit
10dfa64cfa
5 changed files with 184 additions and 64 deletions
|
@ -116,12 +116,11 @@ class TestDelete(TestCase):
|
|||
j = self.t.export()
|
||||
print(j)
|
||||
self.assertEqual(len(j), 1)
|
||||
self.assertInterval(
|
||||
j[0],
|
||||
'{:%Y%m%dT%H}0000Z'.format(now_utc-timedelta(hours=5)),
|
||||
'{:%Y%m%dT%H}0000Z'.format(now_utc-timedelta(hours=4)),
|
||||
['foo'],
|
||||
'remaining interval')
|
||||
self.assertClosedInterval(j[0],
|
||||
expectedStart='{:%Y%m%dT%H}0000Z'.format(now_utc-timedelta(hours=5)),
|
||||
expectedEnd='{:%Y%m%dT%H}0000Z'.format(now_utc-timedelta(hours=4)),
|
||||
expectedTags=['foo'],
|
||||
description='remaining interval')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue