From a2507be7eafb1b372b3f8a2b8c6067ca61f7bb68 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Sat, 10 Apr 2021 23:04:20 +0200 Subject: [PATCH] Add assertion for interval count Signed-off-by: Thomas Lauf --- test/undo.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/undo.t b/test/undo.t index cdf823ea..50920fab 100755 --- a/test/undo.t +++ b/test/undo.t @@ -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)