Passed
Push — master ( c4d205...d52a5c )
by Alexander
01:16
created

tests.test_things3.Things3Case.test_inbox()   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nop 1
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
0 ignored issues
show
Coding Style introduced by
TODO and FIXME comments should generally be avoided.
Loading history...
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
0 ignored issues
show
Coding Style introduced by
TODO and FIXME comments should generally be avoided.
Loading history...
22
        tasks = src.things3.get_inbox()
23
        self.assertEqual(1, len(tasks))
24
25
26
if __name__ == '__main__':
27
    unittest.main()
28