aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests
diff options
context:
space:
mode:
authorUK992 <urbankrajnc92@gmail.com>2017-01-16 01:13:44 +0100
committerUK992 <urbankrajnc92@gmail.com>2017-01-18 21:51:56 +0100
commit8a1aa354d6a86b250e409927a4b876a0574891e6 (patch)
tree5ec926b08257044363fa0997530af2bf45ce781f /python/tidy/servo_tidy_tests
parent747e130295bc6dce8448a69bfdb01d2216f71738 (diff)
downloadservo-8a1aa354d6a86b250e409927a4b876a0574891e6.tar.gz
servo-8a1aa354d6a86b250e409927a4b876a0574891e6.zip
Tidy: Report invalid listed ignored directories and files
Diffstat (limited to 'python/tidy/servo_tidy_tests')
-rw-r--r--python/tidy/servo_tidy_tests/servo-tidy.toml8
-rw-r--r--python/tidy/servo_tidy_tests/test_tidy.py2
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):