Automatically reset the global MSF client between tests.
()
| 152 | # Test environment setup |
| 153 | @pytest.fixture(autouse=True) |
| 154 | def reset_msf_client(): |
| 155 | """Automatically reset the global MSF client between tests.""" |
| 156 | with patch('MetasploitMCP._msf_client_instance', None): |
| 157 | yield |
nothing calls this directly
no outgoing calls
no test coverage detected