MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / setUpClass

Method setUpClass

test/math.test.py:41–55  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

39class TestMath(TestCase):
40 @classmethod
41 def setUpClass(cls):
42 cls.t = Task()
43 cls.t.config("verbose", "nothing")
44 cls.t.config("dateformat", "YYYY-MM-DD")
45
46 # YYYY-12-21.
47 cls.when = "%d-12-21T23:59:59\n" % datetime.now().year
48
49 # Different ways of specifying YYYY-12-21.
50 cls.t("add one due:eoy-10days")
51 cls.t("add two due:'eoy-10days'")
52 cls.t("add three 'due:eoy-10days'")
53 cls.t("add four due:'eoy - 10days'")
54 cls.t("add five 'due:eoy - 10days'")
55 cls.t("add six 'due:{}-12-31T23:59:59 - 10days'".format(datetime.now().year))
56
57 def test_compact_unquoted(self):
58 """compact unquoted"""

Callers

nothing calls this directly

Calls 2

TaskClass · 0.90
configMethod · 0.80

Tested by

no test coverage detected