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

Method test_config_trace

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

Source from the content-addressed store, hash-verified

768
769class TestConfigAPI:
770 def test_config_trace(self, pytester: Pytester) -> None:
771 config = pytester.parseconfig()
772 values: list[str] = []
773 config.trace.root.setwriter(values.append)
774 config.trace("hello")
775 assert len(values) == 1
776 assert values[0] == "hello [config]\n"
777
778 def test_config_getoption_declared_option_name(self, pytester: Pytester) -> None:
779 pytester.makeconftest(

Callers

nothing calls this directly

Calls 2

traceMethod · 0.80
parseconfigMethod · 0.45

Tested by

no test coverage detected