Conditions | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
1 | import os |
||
28 | def test_run(self): |
||
29 | # Test a file with errors and warnings |
||
30 | self.assertLinesInvalid( |
||
31 | self.uut, |
||
32 | [], |
||
33 | self.test_file2) |
||
34 | |||
35 | # Test a file with a warning which can be changed using a config |
||
36 | self.assertLinesInvalid( |
||
37 | self.uut, |
||
38 | [], |
||
39 | self.test_file1) |
||
40 | |||
41 | # Test if warning disappears |
||
42 | self.section.append(Setting("jshint_config", self.conf_file)) |
||
43 | self.assertLinesValid( |
||
44 | self.uut, |
||
45 | [], |
||
46 | self.test_file1) |
||
47 | |||
61 |