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

Method test_config_trace

testing/test_config.py:542–548  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

540
541class TestConfigAPI:
542 def test_config_trace(self, pytester: Pytester) -> None:
543 config = pytester.parseconfig()
544 values: List[str] = []
545 config.trace.root.setwriter(values.append)
546 config.trace("hello")
547 assert len(values) == 1
548 assert values[0] == "hello [config]\n"
549
550 def test_config_getoption(self, pytester: Pytester) -> None:
551 pytester.makeconftest(

Callers

nothing calls this directly

Calls 2

traceMethod · 0.80
parseconfigMethod · 0.45

Tested by

no test coverage detected