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

Method mock_client

tests/test_helpers.py:111–115  ·  view source on GitHub ↗

Fixture providing a mock MSF client.

(self)

Source from the content-addressed store, hash-verified

109
110 @pytest.fixture
111 def mock_client(self):
112 """Fixture providing a mock MSF client."""
113 client = Mock()
114 with patch('MetasploitMCP.get_msf_client', return_value=client):
115 yield client
116
117 @pytest.mark.asyncio
118 async def test_get_module_object_success(self, mock_client):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected