MCPcopy
hub / github.com/pytest-dev/pytest / pytest_configure

Function pytest_configure

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

Source from the content-addressed store, hash-verified

289
290
291def pytest_configure(config: Config) -> None:
292 reporter = TerminalReporter(config, sys.stdout)
293 config.pluginmanager.register(reporter, "terminalreporter")
294 if config.option.debug or config.option.traceconfig:
295
296 def mywriter(tags, args):
297 msg = " ".join(map(str, args))
298 reporter.write_line("[traceconfig] " + msg)
299
300 config.trace.root.setprocessor("pytest:config", mywriter)
301
302 # See terminalprogress.py.
303 # On Windows it's safe to load by default.
304 if sys.platform == "win32":
305 config.pluginmanager.import_plugin("terminalprogress")
306
307
308def getreportopt(config: Config) -> str:

Callers

nothing calls this directly

Calls 3

TerminalReporterClass · 0.85
registerMethod · 0.80
import_pluginMethod · 0.80

Tested by

no test coverage detected