mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Allow our local plugin parsing to accept commas
By slightly modifying our utility function to parse comma separated lists we can parse local plugins similar to other configuration options.
This commit is contained in:
parent
a2c7051c9e
commit
222f0a8115
3 changed files with 19 additions and 7 deletions
|
|
@ -18,7 +18,10 @@ def test_get_local_plugins_respects_isolated():
|
|||
|
||||
def test_get_local_plugins_uses_cli_config():
|
||||
"""Verify behaviour of get_local_plugins with a specified config."""
|
||||
config_obj = mock.Mock()
|
||||
config_finder = mock.MagicMock()
|
||||
config_finder.cli_config.return_value = config_obj
|
||||
config_obj.get.return_value = ''
|
||||
|
||||
config.get_local_plugins(config_finder, cli_config='foo.ini')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue