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

Method test_does_not_cache

tests/test_output.py:218–224  ·  view source on GitHub ↗

Due to doctest weirdness, we must not reuse WriteLoggers.

(self)

Source from the content-addressed store, hash-verified

216
217class TestWriteLoggerFactory:
218 def test_does_not_cache(self):
219 """
220 Due to doctest weirdness, we must not reuse WriteLoggers.
221 """
222 f = WriteLoggerFactory()
223
224 assert f() is not f()
225
226 def test_passes_file(self):
227 """

Callers

nothing calls this directly

Calls 2

WriteLoggerFactoryClass · 0.90
fFunction · 0.85

Tested by

no test coverage detected