config: Make ConfigFileFinder 'extra_config_files' parameter optional

This simplifies the number of required parameters needed for the
`ConfigFileFinder` object throughout the various tests.
This commit is contained in:
Eric N. Vander Weele 2020-01-12 16:03:03 -08:00
parent 44d67e46f5
commit eb6698c420
6 changed files with 17 additions and 22 deletions

View file

@ -32,7 +32,6 @@ def test_aggregate_options_with_config(optmanager):
'E11,E34,E402,W,F', '--exclude', 'tests/*']
config_finder = config.ConfigFileFinder(
'flake8',
[],
config_file=CLI_SPECIFIED_CONFIG)
options, args = aggregator.aggregate_options(
optmanager, config_finder, arguments)
@ -47,7 +46,7 @@ def test_aggregate_options_when_isolated(optmanager):
arguments = ['flake8', '--select', 'E11,E34,E402,W,F',
'--exclude', 'tests/*']
config_finder = config.ConfigFileFinder(
'flake8', [], ignore_config_files=True)
'flake8', ignore_config_files=True)
optmanager.extend_default_ignore(['E8'])
options, args = aggregator.aggregate_options(
optmanager, config_finder, arguments)