flake8/tests/unit
Eric N. Vander Weele 1a4060cd5f config: Change ConfigFileFinder._read_config() to accept variadic args
This simplifies `._read_config()` by removing a conditional branch in
the situation where it is called with one file to process.  Now the
contract accepts any number of arguments of the same type.

Where callers invoke `._read_config()` with a `Sequence`, the call site
has been changed to unpack arguments (i.e., `*`).

The tests in `test_merged_config_parser.py` needed to return a string
for the user configuration path instead of an empty list since
`ConfigFileFinder.user_config_file()` returns a string.
2020-01-06 22:23:12 -05:00
..
conftest.py Add unit test for dd411e95 2019-11-05 22:00:05 +09:00
test_application.py Fixes --exit-zero when empty --diff 2019-12-02 13:47:15 +09:00
test_base_formatter.py linters: Add flake8-bugbear for finding bugs and design problems 2019-10-25 17:11:30 -04:00
test_checker_manager.py Only use multiprocessing when the method is fork 2019-10-28 09:43:30 -07:00
test_config_file_finder.py config: Change ConfigFileFinder._read_config() to accept variadic args 2020-01-06 22:23:12 -05:00
test_debug.py Switch from entrypoints to importlib_metadata 2019-11-28 17:30:52 -08:00
test_decision_engine.py move from optparse to argparse 2019-08-17 20:09:45 -07:00
test_exceptions.py Switch from entrypoints to importlib_metadata 2019-11-28 17:30:52 -08:00
test_file_checker.py Fix python2 unicode test error 2019-01-30 08:55:57 -08:00
test_file_processor.py Remove redundant sample data 2019-11-13 11:58:49 +09:00
test_filenameonly_formatter.py move from optparse to argparse 2019-08-17 20:09:45 -07:00
test_get_local_plugins.py config: Remove args parameter from ConfigFileFinder.__init__ 2019-10-13 13:37:19 -04:00
test_git.py Change how we apply lazy to the git hook 2016-10-25 05:25:44 -05:00
test_legacy_api.py aggregator: Forward --config and --isolated options during aggregation 2019-12-29 18:07:51 -05:00
test_merged_config_parser.py config: Change ConfigFileFinder._read_config() to accept variadic args 2020-01-06 22:23:12 -05:00
test_nothing_formatter.py move from optparse to argparse 2019-08-17 20:09:45 -07:00
test_option.py Type annotate flake8.options.manager 2019-09-07 14:37:50 -07:00
test_option_manager.py optmanager: Inherit options from parent argument parsers 2019-10-25 17:07:43 -04:00
test_plugin.py Put plugin options into separate argparse groups 2019-08-19 15:58:34 -07:00
test_plugin_manager.py Switch from entrypoints to importlib_metadata 2019-11-28 17:30:52 -08:00
test_plugin_type_manager.py Switch from entrypoints to importlib_metadata 2019-11-28 17:30:52 -08:00
test_pyflakes_codes.py Fix reporting of UndefinedLocal pyflakes error 2019-01-31 21:55:10 -08:00
test_setuptools_command.py Fix-up new I202 violations 2017-11-26 11:25:06 -06:00
test_statistics.py mypy now passes 2019-05-19 17:31:04 -07:00
test_style_guide.py move from optparse to argparse 2019-08-17 20:09:45 -07:00
test_utils.py utils: Tighten parse_comma_separated_list() contract further 2019-07-28 10:43:06 -04:00
test_violation.py Update test_violation.py 2019-06-16 17:02:54 +00:00