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

Function pytest_configure

src/_pytest/terminalprogress.py:23–30  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

21
22@hookimpl(trylast=True)
23def pytest_configure(config: Config) -> None:
24 reporter: TerminalReporter | None = config.pluginmanager.get_plugin(
25 "terminalreporter"
26 )
27
28 if reporter is not None and reporter.isatty() and os.environ.get("TERM") != "dumb":
29 plugin = TerminalProgressPlugin(reporter)
30 config.pluginmanager.register(plugin, name="terminalprogress-plugin")

Callers

nothing calls this directly

Calls 4

registerMethod · 0.80
isattyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected