Fixture providing a mock MSF client.
(self)
| 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): |
nothing calls this directly
no outgoing calls
no test coverage detected