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

Method setUpClass

test/recurrence.test.py:42–54  ·  view source on GitHub ↗

Executed once before any test in the class

(cls)

Source from the content-addressed store, hash-verified

40class TestRecurrenceSorting(TestCase):
41 @classmethod
42 def setUpClass(cls):
43 """Executed once before any test in the class"""
44 cls.t = Task()
45 cls.t.config("report.asc.columns", "id,recur,description")
46 cls.t.config("report.asc.sort", "recur+")
47 cls.t.config("report.asc.filter", "status:pending")
48 cls.t.config("report.desc.columns", "id,recur,description")
49 cls.t.config("report.desc.sort", "recur-")
50 cls.t.config("report.desc.filter", "status:pending")
51
52 cls.t("add one due:tomorrow recur:daily")
53 cls.t("add two due:tomorrow recur:weekly")
54 cls.t("add three due:tomorrow recur:3d")
55
56 def setUp(self):
57 """Executed before each test in the class"""

Callers

nothing calls this directly

Calls 2

TaskClass · 0.90
configMethod · 0.80

Tested by

no test coverage detected