summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorEric N. Vander Weele <ericvw@gmail.com>2019-10-01 08:48:18 +0200
committerEric N. Vander Weele <ericvw@gmail.com>2019-10-01 08:48:18 +0200
commit32ebb4fa55ae49f28ab7aa175b6519db21d42dbb (patch)
treeef432c2fd4bce142d7dc0153c8c416413ecfb4b5 /tests/unit
parent55ef2c6f5eae1617dcbbb51636e9280aa8870e02 (diff)
downloadflake8-32ebb4fa55ae49f28ab7aa175b6519db21d42dbb.tar.gz
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`.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_legacy_api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_legacy_api.py b/tests/unit/test_legacy_api.py
index e71d89a..23c975e 100644
--- a/tests/unit/test_legacy_api.py
+++ b/tests/unit/test_legacy_api.py
@@ -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([])