Merge branch 'pytest6' into 'master'

Tests: Add a value to mocked entry_points, so pytest 6+ can log it

See merge request pycqa/flake8!443
This commit is contained in:
Anthony Sottile 2020-07-20 15:54:12 +00:00
commit 029fa1d797

View file

@ -100,6 +100,7 @@ def mock_file_checker_with_plugin(plugin_target):
entry_point = mock.Mock(spec=['load'])
entry_point.name = plugin_target.name
entry_point.load.return_value = plugin_target
entry_point.value = 'mocked:value'
# Load the checker plugins using the entry point mock
with mock.patch.object(