mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 22:04: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
|
|
@ -35,7 +35,7 @@ def test_get_local_plugins_uses_cli_config():
|
|||
def test_get_local_plugins():
|
||||
"""Verify get_local_plugins returns expected plugins."""
|
||||
config_fixture_path = 'tests/fixtures/config_files/local-plugin.ini'
|
||||
config_finder = config.ConfigFileFinder('flake8', [])
|
||||
config_finder = config.ConfigFileFinder('flake8')
|
||||
|
||||
with mock.patch.object(config_finder, 'local_config_files') as localcfs:
|
||||
localcfs.return_value = [config_fixture_path]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue