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

Function pytest_runtest_setup

conftest.py:144–150  ·  view source on GitHub ↗

Setup hook to skip tests based on markers and options.

(item)

Source from the content-addressed store, hash-verified

142 )
143
144def pytest_runtest_setup(item):
145 """Setup hook to skip tests based on markers and options."""
146 if "slow" in item.keywords and not item.config.getoption("--run-slow"):
147 pytest.skip("Skipping slow test (use --run-slow to run)")
148
149 if "network" in item.keywords and not item.config.getoption("--run-network"):
150 pytest.skip("Skipping network test (use --run-network to run)")
151
152# Test environment setup
153@pytest.fixture(autouse=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected