mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 21:44:18 +00:00
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:
commit
08c17e2cd7
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ def mock_file_checker_with_plugin(plugin_target):
|
||||||
entry_point = mock.Mock(spec=['load'])
|
entry_point = mock.Mock(spec=['load'])
|
||||||
entry_point.name = plugin_target.name
|
entry_point.name = plugin_target.name
|
||||||
entry_point.load.return_value = plugin_target
|
entry_point.load.return_value = plugin_target
|
||||||
|
entry_point.value = 'mocked:value'
|
||||||
|
|
||||||
# Load the checker plugins using the entry point mock
|
# Load the checker plugins using the entry point mock
|
||||||
with mock.patch.object(
|
with mock.patch.object(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue