Skip to content

Commit ed8b3cd

Browse files
Merge pull request #21 from AlexanderWillner/main
more coverage
2 parents ee8f661 + 3c36da8 commit ed8b3cd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/test_things.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,37 @@ def test_today(self):
3333
tasks = api.today(filepath=DEMO_FILEPATH)
3434
self.assertEqual(1, len(tasks))
3535

36+
def test_anytime(self):
37+
"""Test antime."""
38+
tasks = api.anytime(filepath=DEMO_FILEPATH)
39+
self.assertEqual(8, len(tasks))
40+
41+
def test_logbook(self):
42+
"""Test logbook."""
43+
tasks = api.logbook(filepath=DEMO_FILEPATH)
44+
self.assertEqual(21, len(tasks))
45+
46+
def test_canceled(self):
47+
"""Test canceled."""
48+
tasks = api.canceled(filepath=DEMO_FILEPATH)
49+
self.assertEqual(11, len(tasks))
50+
51+
def test_completed(self):
52+
"""Test completed."""
53+
tasks = api.completed(filepath=DEMO_FILEPATH)
54+
self.assertEqual(10, len(tasks))
55+
56+
def test_someday(self):
57+
"""Test someday."""
58+
tasks = api.someday(filepath=DEMO_FILEPATH)
59+
self.assertEqual(1, len(tasks))
60+
3661
def test_get(self):
3762
"""Test get."""
3863
tasks = api.get('wrong_uuid', filepath=DEMO_FILEPATH)
3964
self.assertEqual(None, tasks)
65+
tasks = api.get('Qt2AY87x2QDdowSn9HKTt1', filepath=DEMO_FILEPATH)
66+
self.assertEqual(4, len(tasks))
4067

4168
def test_todos(self):
4269
"""Test all tasks."""

0 commit comments

Comments
 (0)