@@ -23,11 +23,21 @@ def test_upcoming(self):
23
23
tasks = api .upcoming (filepath = DEMO_FILEPATH )
24
24
self .assertEqual (2 , len (tasks ))
25
25
26
+ def test_due (self ):
27
+ """Test due."""
28
+ tasks = api .due (filepath = DEMO_FILEPATH )
29
+ self .assertEqual (1 , len (tasks ))
30
+
26
31
def test_today (self ):
27
32
"""Test today."""
28
33
tasks = api .today (filepath = DEMO_FILEPATH )
29
34
self .assertEqual (1 , len (tasks ))
30
35
36
+ def test_get (self ):
37
+ """Test get."""
38
+ tasks = api .get ('wrong_uuid' , filepath = DEMO_FILEPATH )
39
+ self .assertEqual (None , tasks )
40
+
31
41
def test_todos (self ):
32
42
"""Test all tasks."""
33
43
tasks = api .todos (start = "Anytime" , filepath = DEMO_FILEPATH )
@@ -36,8 +46,12 @@ def test_todos(self):
36
46
self .assertEqual (6 , len (tasks ))
37
47
tasks = api .todos (status = "completed" , filepath = DEMO_FILEPATH )
38
48
self .assertEqual (10 , len (tasks ))
49
+ tasks = api .todos (include_items = True , filepath = DEMO_FILEPATH )
50
+ self .assertEqual (9 , len (tasks ))
39
51
with self .assertRaises (ValueError ):
40
52
api .todos (status = "wrong_value" , filepath = DEMO_FILEPATH )
53
+ tasks = api .tasks ('A2oPvtt4dXoypeoLc8uYzY' , filepath = DEMO_FILEPATH )
54
+ self .assertEqual (13 , len (tasks ))
41
55
42
56
def test_tags (self ):
43
57
"""Test all tags."""
0 commit comments