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.

TestRawGithubOnlineChecker.test_is_raw_gh_online()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5

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 5
rs 9.4285
1
"""This module is for testing the online checker."""
2
3
4
import sys
5
6
from unittest import TestCase
7
8
ONLINE_CHECKER = sys.modules["Rainmeter.web.online_checker"]
9
10
11
class TestRmDocOnlineChecker(TestCase):
12
    """Test of the online checks for Rainmeter Documentation using unittest."""
13
14
    def test_is_rm_doc_online(self):
15
        """Rainmeter Documentation should be up to synchronize with it."""
16
        is_online = ONLINE_CHECKER.is_rm_doc_online()
17
18
        self.assertTrue(is_online)
19
20
21
class TestGithubOnlineChecker(TestCase):
22
    """Test of the online checks for Github using unittest."""
23
24
    def test_is_gh_online(self):
25
        """Github should be up to download stuff from it."""
26
        is_online = ONLINE_CHECKER.is_gh_online()
27
28
        self.assertTrue(is_online)
29
30
31
class TestRawGithubOnlineChecker(TestCase):
32
    """Test of the online checks for Raw Github using unittest since raw is served from different service."""
33
34
    def test_is_raw_gh_online(self):
35
        """Raw Github should be up to download stuff from it."""
36
        is_online = ONLINE_CHECKER.is_gh_raw_online()
37
38
        self.assertTrue(is_online)
39