diff options
author | Timur Borkhodoev <timur.borkhodoev@mail.utoronto.ca> | 2018-02-02 14:48:43 -0500 |
---|---|---|
committer | Timur Borkhodoev <timur.borkhodoev@mail.utoronto.ca> | 2018-02-02 14:48:43 -0500 |
commit | 06e439ef40a8f59c6172b2dcac8f452431a8b845 (patch) | |
tree | 65baefe0f45c50a4a2e73d325f15523b681d0762 /python/tidy/servo_tidy_tests/test_tidy.py | |
parent | bcb4bd2f3013ef8c415cf0f69143347a0cc6f78b (diff) | |
download | servo-06e439ef40a8f59c6172b2dcac8f452431a8b845.tar.gz servo-06e439ef40a8f59c6172b2dcac8f452431a8b845.zip |
Add correct file test for manifest test
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index 1c4a055a665..e9e2ffcfdd1 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -33,10 +33,13 @@ class CheckTidiness(unittest.TestCase): self.assertEqual("ignored directory './fake/dir' doesn't exist", errors.next()[2]) self.assertNoMoreErrors(errors) - def test_wpt_manifest_checks(self): + def test_non_existing_wpt_manifest_checks(self): wrong_path = "/wrong/path.ini" - errors = tidy.check_manifest_dirs(wrong_path) + errors = tidy.check_manifest_dirs(wrong_path, print_text=False) self.assertEqual("%s manifest file is required but was not found" % wrong_path, errors.next()[2]) + self.assertNoMoreErrors(errors) + errors = tidy.check_manifest_dirs(os.path.join(base_path, 'manifest-include.ini'), print_text=False) + self.assertNoMoreErrors(errors) def test_directory_checks(self): dirs = { |