Refactor file processor tests to use fixture

This commit is contained in:
Tomer Keren 2019-01-13 22:14:32 +02:00 committed by Anthony Sottile
parent 92a037684f
commit a4f5447fc8
2 changed files with 51 additions and 59 deletions

View file

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