MCPcopy Create free account
hub / github.com/GH05TCREW/MetasploitMCP / mock_to_thread

Function mock_to_thread

conftest.py:115–116  ·  view source on GitHub ↗
(func, *args, **kwargs)

Source from the content-addressed store, hash-verified

113def mock_asyncio_to_thread():
114 """Fixture to mock asyncio.to_thread for testing."""
115 async def mock_to_thread(func, *args, **kwargs):
116 return func(*args, **kwargs)
117
118 with patch('asyncio.to_thread', side_effect=mock_to_thread):
119 yield

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected