mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +00:00
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:
parent
44d67e46f5
commit
eb6698c420
6 changed files with 17 additions and 22 deletions
|
|
@ -22,7 +22,7 @@ def test_get_style_guide():
|
|||
mockedapp.parse_preliminary_options.return_value = (prelim_opts, [])
|
||||
mockedapp.program = 'flake8'
|
||||
with mock.patch('flake8.api.legacy.config.ConfigFileFinder') as mock_config_finder: # noqa: E501
|
||||
config_finder = ConfigFileFinder(mockedapp.program, [])
|
||||
config_finder = ConfigFileFinder(mockedapp.program)
|
||||
mock_config_finder.return_value = config_finder
|
||||
|
||||
with mock.patch('flake8.main.application.Application') as application:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue