diff options
Diffstat (limited to 'python/tidy/servo_tidy_tests')
-rw-r--r-- | python/tidy/servo_tidy_tests/servo-tidy.toml | 8 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy_tests/servo-tidy.toml b/python/tidy/servo_tidy_tests/servo-tidy.toml index 855ea554c72..690098b0e44 100644 --- a/python/tidy/servo_tidy_tests/servo-tidy.toml +++ b/python/tidy/servo_tidy_tests/servo-tidy.toml @@ -11,5 +11,9 @@ wrong-key = false wrong-key = true [ignore] -files = [] -directories = [] +files = [ + "./fake/file.html", +] +directories = [ + "./fake/dir", +] diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index d8738b08981..f9ccf889ec0 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -29,6 +29,8 @@ class CheckTidiness(unittest.TestCase): self.assertEqual("invalid config key 'key-outside'", errors.next()[2]) self.assertEqual("invalid config key 'wrong-key'", errors.next()[2]) self.assertEqual('invalid config table [wrong]', errors.next()[2]) + self.assertEqual("ignored file './fake/file.html' doesn't exist", errors.next()[2]) + self.assertEqual("ignored directory './fake/dir' doesn't exist", errors.next()[2]) self.assertNoMoreErrors(errors) def test_directory_checks(self): |