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

Method mock_module

tests/test_helpers.py:161–166  ·  view source on GitHub ↗

Fixture providing a mock module object.

(self)

Source from the content-addressed store, hash-verified

159
160 @pytest.fixture
161 def mock_module(self):
162 """Fixture providing a mock module object."""
163 module = Mock()
164 module.fullname = 'exploit/test/module'
165 module.__setitem__ = Mock()
166 return module
167
168 @pytest.mark.asyncio
169 async def test_set_module_options_basic(self, mock_module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected