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.

TestSkinRainmeterSectionCompletion   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_wrong_section_return_none() 0 11 1
1
"""
2
These are unit tests especially made for Rainmeter and Sublime Text.
3
4
The ST3 modules need to be loaded differently than the usual import,
5
because they are not official modules.
6
"""
7
8
import sys
9
10
from unittest import TestCase
11
12
RAINMETER_SECTION = sys.modules["Rainmeter.completion.skin.rainmeter_section"]
13
14
15
class TestSkinRainmeterSectionCompletion(TestCase):
16
    """Testing the skin/rainmeter section completion."""
17
18
    def test_wrong_section_return_none(self):
19
        """
20
        Test should fail since we move in wrong section.
21
22
        The given section is 'Different' but we are moving in the Rainmeter section
23
        thus only 'Rainmeter' is allowed
24
        """
25
        complete = RAINMETER_SECTION.SkinRainmeterSectionAutoComplete()
26
        value_completion = complete.get_value_context_completion("Different", None)
27
28
        self.assertEqual(value_completion, None)
29