Skip to content

Commit

Permalink
enhanced test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed May 1, 2020
1 parent dd5a62f commit de5ea70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_things3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ def test_today(self):
result = json.loads(self.things3_api.api("today").response[0])
self.assertEqual(4, len(result))

def test_get_tag(self):
"""Test tags."""
result = json.loads(self.things3_api.tag("Waiting").response[0])
self.assertEqual(3, len(result))

def test_not_implemented(self):
"""Test not implemented."""
result = self.things3_api.api("not-implemented").status_code
self.assertEqual(404, result)

def test_not_found(self):
"""Test not found."""
result = self.things3_api.on_get('sdf').status_code
self.assertEqual(404, result)

def test_toggle(self):
"""Test toggle."""
result = json.loads(self.things3_api.api("next").response[0])
Expand Down

0 comments on commit de5ea70

Please sign in to comment.