mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Check for license only in Cargo.toml
This commit is contained in:
parent
6f22251e65
commit
0f07517049
3 changed files with 4 additions and 5 deletions
|
@ -117,7 +117,7 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertNoMoreErrors(errors)
|
||||
|
||||
def test_toml(self):
|
||||
errors = tidy.collect_errors_for_files(iterFile('test.toml'), [tidy.check_toml], [], print_text=False)
|
||||
errors = tidy.collect_errors_for_files(iterFile('Cargo.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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue