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

Method mock_console

tests/test_helpers.py:262–267  ·  view source on GitHub ↗

Fixture providing a mock console.

(self)

Source from the content-addressed store, hash-verified

260
261 @pytest.fixture
262 def mock_console(self):
263 """Fixture providing a mock console."""
264 console = Mock()
265 console.write = Mock()
266 console.read = Mock()
267 return console
268
269 @pytest.mark.asyncio
270 async def test_run_command_safely_basic(self, mock_console):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected