diff options
| author | Eric N. Vander Weele <ericvw@gmail.com> | 2019-10-01 08:48:18 +0200 |
|---|---|---|
| committer | Eric N. Vander Weele <ericvw@gmail.com> | 2019-10-01 08:48:18 +0200 |
| commit | 95a88e3fcd84f45eb6c0869cb095ea9089dfed44 (patch) | |
| tree | 5f5167c8c915def5bf468fdc52e93dfe1e3b32e1 /tests | |
| parent | 32ebb4fa55ae49f28ab7aa175b6519db21d42dbb (diff) | |
| download | flake8-95a88e3fcd84f45eb6c0869cb095ea9089dfed44.tar.gz | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_legacy_api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/test_legacy_api.py b/tests/unit/test_legacy_api.py index 23c975e..f36246c 100644 --- a/tests/unit/test_legacy_api.py +++ b/tests/unit/test_legacy_api.py @@ -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() |
