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

Function test_clear

testing/logging/test_fixture.py:144–151  ·  view source on GitHub ↗
(caplog)

Source from the content-addressed store, hash-verified

142
143
144def test_clear(caplog):
145 caplog.set_level(logging.INFO)
146 logger.info("bū")
147 assert len(caplog.records)
148 assert caplog.text
149 caplog.clear()
150 assert not len(caplog.records)
151 assert not caplog.text
152
153
154@pytest.fixture

Callers

nothing calls this directly

Calls 2

set_levelMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected