GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( e3a209...bb2a36 )
by Juan Jose
01:39
created

Route4MeUtilsTests   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_json2obj() 0 4 1
1
import unittest
2
import json
3
from route4me.utils import json2obj
4
5
from tests.base import Route4MeAPITestSuite
6
7
8
class Route4MeUtilsTests(Route4MeAPITestSuite):
9
    """
10
    Route4Me Utils Tests
11
    """
12
13
    def test_json2obj(self):
14
        json_data = json.dumps({'variable1': 'test_value'})
15
        json_obj = json2obj(json_data)
16
        self.assertTrue(hasattr(json_obj, 'variable1'))
17
18
19
if __name__ == '__main__':
20
    unittest.main()