mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Some cleanups in tidy
This commit is contained in:
parent
f8b2be1ea4
commit
33d7b3967e
2 changed files with 34 additions and 43 deletions
|
@ -24,9 +24,9 @@ class CheckTidiness(unittest.TestCase):
|
|||
errors.next()
|
||||
|
||||
def test_tidy_config(self):
|
||||
errors = tidy.check_config_file(os.path.join(base_path, 'servo-tidy.toml'))
|
||||
self.assertEqual('invalid config key \'key-outside\'', errors.next()[2])
|
||||
self.assertEqual('invalid config key \'wrong-key\'', errors.next()[2])
|
||||
errors = tidy.check_config_file(os.path.join(base_path, 'servo-tidy.toml'), print_text=False)
|
||||
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.assertNoMoreErrors(errors)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue