mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
Refactor file processor tests to use fixture
This commit is contained in:
parent
92a037684f
commit
a4f5447fc8
2 changed files with 51 additions and 59 deletions
|
|
@ -8,6 +8,7 @@ def options_from(**kwargs):
|
|||
"""Generate a Values instances with our kwargs."""
|
||||
kwargs.setdefault('hang_closing', True)
|
||||
kwargs.setdefault('max_line_length', 79)
|
||||
kwargs.setdefault('max_doc_length', None)
|
||||
kwargs.setdefault('verbose', False)
|
||||
kwargs.setdefault('stdin_display_name', 'stdin')
|
||||
return optparse.Values(kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue