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 ( ad8cdd...e25934 )
by thatsIch
01:03
created

test_edit_theme_command_multi_theme()   A

Complexity

Conditions 1

Size

Total Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

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