MCPcopy Create free account
hub / github.com/hynek/structlog / test_does_not_cache

Method test_does_not_cache

tests/test_output.py:193–199  ·  view source on GitHub ↗

Due to doctest weirdness, we must not reuse PrintLoggers.

(self)

Source from the content-addressed store, hash-verified

191
192class TestPrintLoggerFactory:
193 def test_does_not_cache(self):
194 """
195 Due to doctest weirdness, we must not reuse PrintLoggers.
196 """
197 f = PrintLoggerFactory()
198
199 assert f() is not f()
200
201 def test_passes_file(self):
202 """

Callers

nothing calls this directly

Calls 2

PrintLoggerFactoryClass · 0.90
fFunction · 0.85

Tested by

no test coverage detected