mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
application: Pass prelim opts and args to .make_config_finder()
Now that `.parse_preliminary_options_and_args()` returns options and arguments, the boolean for appending configuration and the arguments can be threaded through to the creation of the `ConfigFileFinder`.
This commit is contained in:
parent
55ef2c6f5e
commit
32ebb4fa55
3 changed files with 15 additions and 9 deletions
|
|
@ -11,6 +11,7 @@ from flake8.formatting import base as formatter
|
|||
def test_get_style_guide():
|
||||
"""Verify the methods called on our internal Application."""
|
||||
prelim_opts = argparse.Namespace(
|
||||
append_config=[],
|
||||
output_file=None,
|
||||
verbose=0,
|
||||
)
|
||||
|
|
@ -26,7 +27,7 @@ def test_get_style_guide():
|
|||
|
||||
application.assert_called_once_with()
|
||||
mockedapp.parse_preliminary_options_and_args.assert_called_once_with([])
|
||||
mockedapp.make_config_finder.assert_called_once_with()
|
||||
mockedapp.make_config_finder.assert_called_once_with([], [])
|
||||
mockedapp.find_plugins.assert_called_once_with()
|
||||
mockedapp.register_plugin_options.assert_called_once_with()
|
||||
mockedapp.parse_configuration_and_cli.assert_called_once_with([])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue