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.
Completed
Push — master ( e8d04c...cc6b42 )
by Flávio
05:00
created

TestWebserviceBase.setUp()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
1
from unittest import TestCase
2
from tests.helper import StubWebserviceBase
3
from correios_lib.webservices import WebserviceBase, WebserviceError
4
5
6
class TestWebserviceBase(TestCase):
7
8
    def setUp(self):
9
        self.webservice = StubWebserviceBase(
10
            env='DEV',
11
            id_correios='empresacws',
12
            password='123456'
13
        )
14
15
    def test_not_implemented_get_env(self):
16
        self.assertRaises(
17
            NotImplementedError,
18
            WebserviceBase,
19
            'DEV',
20
            'empresacws',
21
            '123456'
22
        )
23
24
    def test_nonexisting_method(self):
25
        self.assertRaises(
26
            WebserviceError,
27
            self.webservice.call,
28
            'test',
29
            {'test'}
30
        )
31