mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Add assertion for interval count
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
0460656afe
commit
a2507be7ea
1 changed files with 1 additions and 1 deletions
|
@ -92,12 +92,12 @@ class TestUndo(TestCase):
|
|||
self.t("undo")
|
||||
|
||||
j = self.t.export()
|
||||
self.assertEqual(len(j), 2, msg="Expected 2 intervals afterwards, got {}".format(len(j)))
|
||||
self.assertOpenInterval(j[1],
|
||||
expectedStart=one_hour_before_utc,
|
||||
expectedTags=["bar"],
|
||||
expectedAnnotation="")
|
||||
|
||||
|
||||
def test_undo_cancel(self):
|
||||
"""Test undo of command 'cancel'"""
|
||||
one_hour_before_utc = datetime.now().utcnow() - timedelta(hours=1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue