mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add tests for the new LintRunner
This commit is contained in:
parent
8385c9ae79
commit
34955e0bf8
7 changed files with 46 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Lint(LintRunner):
|
||||
def run(self):
|
||||
yield None
|
5
python/tidy/servo_tidy_tests/lints/no_lint.py
Normal file
5
python/tidy/servo_tidy_tests/lints/no_lint.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Linter(LintRunner):
|
||||
def run(self):
|
||||
pass
|
5
python/tidy/servo_tidy_tests/lints/no_run.py
Normal file
5
python/tidy/servo_tidy_tests/lints/no_run.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Lint(LintRunner):
|
||||
def some_method(self):
|
||||
pass
|
2
python/tidy/servo_tidy_tests/lints/not_inherited.py
Normal file
2
python/tidy/servo_tidy_tests/lints/not_inherited.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Lint(object):
|
||||
pass
|
0
python/tidy/servo_tidy_tests/lints/not_script
Normal file
0
python/tidy/servo_tidy_tests/lints/not_script
Normal file
6
python/tidy/servo_tidy_tests/lints/proper_file.py
Normal file
6
python/tidy/servo_tidy_tests/lints/proper_file.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Lint(LintRunner):
|
||||
def run(self):
|
||||
for _ in [None]:
|
||||
yield ('path', 0, 'foobar')
|
Loading…
Add table
Add a link
Reference in a new issue