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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 18
rs 10
c 2
b 0
f 0
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_info() 0 6 2
A test_error() 0 6 2
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