mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +00:00
Add debugging utility for FileChecker
This commit is contained in:
parent
68c6577564
commit
feec0754bd
2 changed files with 13 additions and 0 deletions
|
|
@ -23,3 +23,12 @@ def test_run_ast_checks_handles_SyntaxErrors(FileProcessor):
|
|||
'E999', 1, 3,
|
||||
'SyntaxError: Failed to build ast',
|
||||
)
|
||||
|
||||
|
||||
@mock.patch('flake8.checker.FileChecker._make_processor', return_value=None)
|
||||
def test_repr(*args):
|
||||
"""Verify we generate a correct repr."""
|
||||
file_checker = checker.FileChecker(
|
||||
'example.py', checks={}, options=object(),
|
||||
)
|
||||
assert repr(file_checker) == 'FileChecker for example.py'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue