Total Complexity | 3 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import shutil |
||
7 | @unittest.skipIf(shutil.which('julia') is None, 'Julia is not installed.') |
||
8 | class JuliaRequirementTestCase(unittest.TestCase): |
||
9 | |||
10 | def test_installed_requirement(self): |
||
11 | self.assertTrue(JuliaRequirement("Lint").is_installed()) |
||
12 | |||
13 | def test_not_registered_requirement(self): |
||
14 | self.assertFalse(JuliaRequirement("some_bad_package").is_installed()) |
||
15 | |||
16 | def test_registered_but_not_installed_requirement(self): |
||
17 | # FIXME Make this test more reliable, because `ACME` can be an |
||
18 | # FIXME installed package. |
||
19 | self.assertFalse(JuliaRequirement("ACME").is_installed()) |
||
20 |