diff options
| author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2017-08-09 19:35:01 -0500 |
|---|---|---|
| committer | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2017-08-09 19:35:01 -0500 |
| commit | 222f0a8115651eecc4f88933bb887068427e97bf (patch) | |
| tree | 4584e6f37c8334f7c1ebbcc8b7e7e0f986cf53b4 /tests/unit | |
| parent | a2c7051c9e4d42014620099743e449415d8cb450 (diff) | |
| download | flake8-222f0a8115651eecc4f88933bb887068427e97bf.tar.gz | |
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.
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_get_local_plugins.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/test_get_local_plugins.py b/tests/unit/test_get_local_plugins.py index 942599a..b2f985e 100644 --- a/tests/unit/test_get_local_plugins.py +++ b/tests/unit/test_get_local_plugins.py @@ -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') |
