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

Function pytest_addoption

conftest.py:129–142  ·  view source on GitHub ↗

Add custom command line options.

(parser)

Source from the content-addressed store, hash-verified

127
128# Command line options
129def pytest_addoption(parser):
130 """Add custom command line options."""
131 parser.addoption(
132 "--run-slow",
133 action="store_true",
134 default=False,
135 help="Run slow tests"
136 )
137 parser.addoption(
138 "--run-network",
139 action="store_true",
140 default=False,
141 help="Run tests that require network access"
142 )
143
144def pytest_runtest_setup(item):
145 """Setup hook to skip tests based on markers and options."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected