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 ( 1d68b0...5cef43 )
by Juan Jose
29s
created

TestUtils.test_json2obj_non_letter_keys()   A

Complexity

Conditions 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
1
import pytest
2
3
import utils
4
5
6
class TestUtils(object):
7
8
    def test_json2obj(self):
9
        """
10
        simple json
11
        """
12
        act = utils.json2obj('{"key": 123}')
13
        exp = {
14
            "key": 123
15
        }
16
        assert act == exp
17
18
    def test_json2obj_non_letter_keys(self):
19
        """
20
        non-letters among keys
21
        """
22
23
        act = utils.json2obj('{"key#11": 12}')
24
        exp = {
25
            "key#11" : 12
26
        }
27
        assert act == exp
28