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

Function reset_msf_client

conftest.py:154–157  ·  view source on GitHub ↗

Automatically reset the global MSF client between tests.

()

Source from the content-addressed store, hash-verified

152# Test environment setup
153@pytest.fixture(autouse=True)
154def reset_msf_client():
155 """Automatically reset the global MSF client between tests."""
156 with patch('MetasploitMCP._msf_client_instance', None):
157 yield

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected