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

tests.test_things3   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 13
dl 0
loc 28
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Things3Case.test_inbox() 0 5 1
A Things3Case.test_today() 0 5 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