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

Function pytest_configure

src/_pytest/terminal.py:227–236  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

225
226
227def pytest_configure(config: Config) -> None:
228 reporter = TerminalReporter(config, sys.stdout)
229 config.pluginmanager.register(reporter, "terminalreporter")
230 if config.option.debug or config.option.traceconfig:
231
232 def mywriter(tags, args):
233 msg = " ".join(map(str, args))
234 reporter.write_line("[traceconfig] " + msg)
235
236 config.trace.root.setprocessor("pytest:config", mywriter)
237
238
239def getreportopt(config: Config) -> str:

Callers

nothing calls this directly

Calls 2

TerminalReporterClass · 0.85
registerMethod · 0.80

Tested by

no test coverage detected