From 52479f560fd51e659a58426a79844a4fff231ab4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 1 Jan 2015 17:32:31 -0500 Subject: [PATCH] Unit tests - Commented tests that are performing naive date math, which breaks on 2015-01-01, among other dates. --- test/tw-1424.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tw-1424.t b/test/tw-1424.t index 2cbcedf4d..6103f5fc0 100755 --- a/test/tw-1424.t +++ b/test/tw-1424.t @@ -20,12 +20,14 @@ class Test1424(TestCase): """Check that due:1824d works""" self.t(('add', 'foo', 'due:1824d')) code, out, err = self.t(('_get', '1.due.year')) + # TODO 1824d != 5y, this test needs to be fixed. self.assertEqual(out, "%d\n" % (datetime.now().year + 5)) def test_3648_days(self): """Check that due:3648d works""" self.t(('add', 'foo', 'due:3648d')) code, out, err = self.t(('_get', '1.due.year')) + # TODO 3648d != 10y, this test needs to be fixed. self.assertEqual(out, "%d\n" % (datetime.now().year + 10)) if __name__ == "__main__":