| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 2 | # -*- coding: utf-8 -*- |
||
| 3 | |||
| 4 | """Module documentation goes here.""" |
||
| 5 | |||
| 6 | import unittest |
||
| 7 | import sys |
||
| 8 | import src.things3 |
||
| 9 | |||
| 10 | |||
| 11 | class Things3Case(unittest.TestCase): |
||
| 12 | """Class documentation goes here.""" |
||
| 13 | def test_today(self): |
||
| 14 | """Test Today.""" |
||
| 15 | # TODO: set database to test database here |
||
|
|
|||
| 16 | tasks = src.things3.get_today() |
||
| 17 | self.assertEqual(4, len(tasks)) |
||
| 18 | |||
| 19 | def test_inbox(self): |
||
| 20 | """Test Inbox.""" |
||
| 21 | # TODO: set database to test database here |
||
| 22 | tasks = src.things3.get_inbox() |
||
| 23 | self.assertEqual(1, len(tasks)) |
||
| 24 | |||
| 25 | |||
| 26 | if __name__ == '__main__': |
||
| 27 | unittest.main() |
||
| 28 |