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

Method mock_client

tests/test_helpers.py:215–219  ·  view source on GitHub ↗

Fixture providing a mock MSF client.

(self)

Source from the content-addressed store, hash-verified

213
214 @pytest.fixture
215 def mock_client(self):
216 """Fixture providing a mock MSF client."""
217 client = Mock()
218 with patch('MetasploitMCP.get_msf_client', return_value=client):
219 yield client
220
221 @pytest.mark.asyncio
222 async def test_get_msf_console_success(self, mock_client):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected