refactor run_checks to not take an Optional list of filenames

This commit is contained in:
Anthony Sottile 2021-11-25 15:45:01 -05:00
parent 6e5600f8ec
commit 77a054688b
6 changed files with 18 additions and 22 deletions

View file

@ -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)