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

Function capture_logs

conftest.py:122–126  ·  view source on GitHub ↗

Fixture to capture and provide log output.

(caplog)

Source from the content-addressed store, hash-verified

120
121@pytest.fixture
122def capture_logs(caplog):
123 """Fixture to capture and provide log output."""
124 import logging
125 caplog.set_level(logging.DEBUG)
126 return caplog
127
128# Command line options
129def pytest_addoption(parser):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected