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