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.

TestFunctions.test_info()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
1
"""This module is about testing the logger."""
2
3
import sys
4
5
from unittest import TestCase
6
7
LOGGER = sys.modules["Rainmeter.logger"]
8
9
10
class TestFunctions(TestCase):
11
    """Test class wrapper using unittest."""
12
13
    # pylint: disable=W0703; This is acceptable since we are testing it not failing
14
15
    def test_info(self):
16
        """Info should not through exceptions due to settings."""
17
        try:
18
            LOGGER.info("info test")
19
        except Exception as error:
20
            self.fail("logger.info() raised exception '" + str(error) + "'")
21
22
    def test_error(self):
23
        """Error should not through exception due to settings."""
24
        try:
25
            LOGGER.error("error test")
26
        except Exception as error:
27
            self.fail("logger.error() raised exception '" + str(error) + "'")
28