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

Method test_caches

tests/test_testing.py:172–179  ·  view source on GitHub ↗

There's no need to have several loggers so we return the same one on each call.

(self)

Source from the content-addressed store, hash-verified

170 assert isinstance(f(), ReturnLogger)
171
172 def test_caches(self):
173 """
174 There's no need to have several loggers so we return the same one on
175 each call.
176 """
177 f = ReturnLoggerFactory()
178
179 assert f() is f()
180
181 def test_ignores_args(self):
182 """

Callers

nothing calls this directly

Calls 2

ReturnLoggerFactoryClass · 0.90
fFunction · 0.85

Tested by

no test coverage detected