diff options
author | Simon Martin <simartin@users.sourceforge.net> | 2016-07-23 14:41:48 +0200 |
---|---|---|
committer | Simon Martin <simartin@users.sourceforge.net> | 2016-07-23 14:41:48 +0200 |
commit | c35cf9ad8a096bd714f490dc01588fa18dcd6e7d (patch) | |
tree | 7a5a706d8acfe9a5b4f9c34bd2b8e2da3f06d35f /python/tidy/servo_tidy_tests | |
parent | 7ea73ba2eec54e626db964eb3c943c2ba9b61466 (diff) | |
download | servo-c35cf9ad8a096bd714f490dc01588fa18dcd6e7d.tar.gz servo-c35cf9ad8a096bd714f490dc01588fa18dcd6e7d.zip |
Issue #12564: Fix "./mach test-tidy --self-test".
Diffstat (limited to 'python/tidy/servo_tidy_tests')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index 8db19a5efd7..5c271b1afdb 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -93,6 +93,7 @@ class CheckTidiness(unittest.TestCase): def test_toml(self): errors = tidy.collect_errors_for_files(iterFile('test.toml'), [tidy.check_toml], [], print_text=False) self.assertEqual('found asterisk instead of minimum version number', errors.next()[2]) + self.assertEqual('.toml file should contain a valid license.', errors.next()[2]) self.assertNoMoreErrors(errors) def test_modeline(self): @@ -130,11 +131,11 @@ class CheckTidiness(unittest.TestCase): file_list = tidy.get_file_list(base_path, only_changed_files=False, exclude_dirs=[]) lst = list(file_list) - self.assertEqual([os.path.join(base_path, 'whee', 'test.rs')], lst) + self.assertEqual([os.path.join(base_path, 'whee', 'test.rs'), os.path.join(base_path, 'whee', 'foo', 'bar.rs')], lst) file_list = tidy.get_file_list(base_path, only_changed_files=False, - exclude_dirs=[os.path.join(base_path,'whee')]) + exclude_dirs=[os.path.join(base_path, 'whee', 'foo')]) lst = list(file_list) - self.assertEqual([], lst) + self.assertEqual([os.path.join(base_path, 'whee', 'test.rs')], lst) def do_tests(): suite = unittest.TestLoader().loadTestsFromTestCase(CheckTidiness) |