mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +00:00
refactor run_checks to not take an Optional list of filenames
This commit is contained in:
parent
6e5600f8ec
commit
77a054688b
6 changed files with 18 additions and 22 deletions
|
|
@ -68,7 +68,8 @@ def test_styleguide_check_files():
|
|||
style_guide = api.StyleGuide(app)
|
||||
report = style_guide.check_files(paths)
|
||||
|
||||
app.run_checks.assert_called_once_with(paths)
|
||||
assert app.options.filenames == paths
|
||||
app.run_checks.assert_called_once_with()
|
||||
app.report_errors.assert_called_once_with()
|
||||
assert isinstance(report, api.Report)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue