@@ -33,10 +33,37 @@ def test_today(self):
33
33
tasks = api .today (filepath = DEMO_FILEPATH )
34
34
self .assertEqual (1 , len (tasks ))
35
35
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
+
36
61
def test_get (self ):
37
62
"""Test get."""
38
63
tasks = api .get ('wrong_uuid' , filepath = DEMO_FILEPATH )
39
64
self .assertEqual (None , tasks )
65
+ tasks = api .get ('Qt2AY87x2QDdowSn9HKTt1' , filepath = DEMO_FILEPATH )
66
+ self .assertEqual (4 , len (tasks ))
40
67
41
68
def test_todos (self ):
42
69
"""Test all tasks."""
0 commit comments