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 ( 2cdf78...10d98e )
by thatsIch
01:20 queued 15s
created

test_single_theme()   A

Complexity

Conditions 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 16
rs 9.4285
c 0
b 0
f 0
1
"""This module is to test the theme switcher plugin."""
2
3
import sublime
4
5
from unittest import TestCase
6
7
8
class TestThemeSwitcherEditThemeCommand(TestCase):
9
    """Test class wrapper using unittest."""
10
11
    # pylint: disable=W0703; This is acceptable since we are testing it not failing
12
13
    def test_single_theme(self):
14
        """Changing the theme should effect the settings."""
15
        win = sublime.active_window()
16
17
        future_skin = "Lachgummi Joghurt"
18
        win.run_command(
19
            "edit_theme",
20
            {
21
                "theme": future_skin
22
            }
23
        )
24
25
        settings = sublime.load_settings("Rainmeter.sublime-settings")
26
        post_theme = settings.get("color_scheme", None)
27
28
        self.assertTrue(future_skin in post_theme)
29
30
    def test_multi_theme(self):
31
        """Changing to a non existing theme does not effect the settings."""
32
        win = sublime.active_window()
33
34
        settings = sublime.load_settings("Rainmeter.sublime-settings")
35
        prior_theme = settings.get("color_scheme", None)
36
37
        win.run_command(
38
            "edit_theme",
39
            {
40
                "theme": "Not existing skin"
41
            }
42
        )
43
44
        settings = sublime.load_settings("Rainmeter.sublime-settings")
45
        post_theme = settings.get("color_scheme", None)
46
47
        self.assertEqual(prior_theme, post_theme)
48