Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
22 | class CheckDeploymentEnvActionTestCase(GitHubBaseActionTestCase): |
||
23 | __test__ = True |
||
24 | action_cls = CheckDeploymentEnvAction |
||
25 | |||
26 | def test_run_matching_env(self): |
||
27 | action = self.get_action_instance(self.full_config) |
||
28 | self.assertTrue(action.run("production")) |
||
29 | |||
30 | def test_run_non_matching_env(self): |
||
31 | action = self.get_action_instance(self.full_config) |
||
32 | self.assertRaises(ValueError, |
||
33 | action.run, |
||
34 | "staging") |
||
35 |