mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
application: Pass prelim opts to .find_plugins()
The configuration file and boolean to ignore configuration files can be threaded through now that `.parse_preliminary_options_and_args()` returns options and arguments.
This commit is contained in:
parent
32ebb4fa55
commit
95a88e3fcd
3 changed files with 15 additions and 8 deletions
|
|
@ -12,6 +12,8 @@ def test_get_style_guide():
|
|||
"""Verify the methods called on our internal Application."""
|
||||
prelim_opts = argparse.Namespace(
|
||||
append_config=[],
|
||||
config=None,
|
||||
isolated=False,
|
||||
output_file=None,
|
||||
verbose=0,
|
||||
)
|
||||
|
|
@ -28,7 +30,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.find_plugins.assert_called_once_with()
|
||||
mockedapp.find_plugins.assert_called_once_with(None, False)
|
||||
mockedapp.register_plugin_options.assert_called_once_with()
|
||||
mockedapp.parse_configuration_and_cli.assert_called_once_with([])
|
||||
mockedapp.make_formatter.assert_called_once_with()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue