MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_cmdline_main

Function pytest_cmdline_main

src/_pytest/python.py:136–143  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

134
135
136def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]:
137 if config.option.showfixtures:
138 showfixtures(config)
139 return 0
140 if config.option.show_fixtures_per_test:
141 show_fixtures_per_test(config)
142 return 0
143 return None
144
145
146def pytest_generate_tests(metafunc: "Metafunc") -> None:

Callers

nothing calls this directly

Calls 2

showfixturesFunction · 0.85
show_fixtures_per_testFunction · 0.85

Tested by

no test coverage detected