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.
Passed
Push — kale/submit-debug-info ( c0cb8c...f2d693 )
by
unknown
08:15
created

PrimeCheckerActionTestCase.test_run()   A

Complexity

Conditions 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4285
cc 1
1
from st2tests.base import BaseActionTestCase
2
3
from pythonactions.isprime import PrimeCheckerAction
4
5
6
class PrimeCheckerActionTestCase(BaseActionTestCase):
7
    action_cls = PrimeCheckerAction
8
9
    def test_run(self):
10
        action = self.get_action_instance()
11
        result = action.run(value=1)
12
        self.assertFalse(result)
13
14
        result = action.run(value=3)
15
        self.assertTrue(result)
16