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 ( 95deb7...bc74d0 )
by thatsIch
59s
created

TestFunctions.test_error()   A

Complexity

Conditions 2

Size

Total Lines 12

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 12
rs 9.4285
1
import sys
2
3
from unittest import TestCase
4
5
logger = sys.modules["Rainmeter.logger"]
6
7
8
class TestFunctions(TestCase):
9
10
    def test_info(self):
11
        """
12
        info should not through exceptions due to settings
13
        """
14
        try:
15
            logger.info(
16
                __file__,
17
                "test_info(self)",
18
                "info test"
19
            )
20
        except Exception as error:
21
            self.fail("logger.info() raised exception '" + error + "'")
22
23
    def test_error(self):
24
        """
25
        error should not through exception due to settings
26
        """
27
        try:
28
            logger.error(
29
                __file__,
30
                "test_error(self)",
31
                "error test"
32
            )
33
        except Exception as error:
34
            self.fail("logger.error() raised exception '" + error + "'")
35