Update to new entry_points selection protocol.

This commit is contained in:
Jason R. Coombs 2021-02-24 19:51:21 -05:00
parent 6de8252c03
commit f4238018c0
5 changed files with 17 additions and 21 deletions

View file

@ -106,7 +106,7 @@ def mock_file_checker_with_plugin(plugin_target):
with mock.patch.object(
importlib_metadata,
'entry_points',
return_value={'flake8.extension': [entry_point]},
return_value=[entry_point],
):
checks = manager.Checkers()