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

Method test_sets_correct_logger

tests/test_stdlib.py:156–162  ·  view source on GitHub ↗

Calling LoggerFactory ensures that Logger.findCaller gets patched.

(self)

Source from the content-addressed store, hash-verified

154 )
155
156 def test_sets_correct_logger(self):
157 """
158 Calling LoggerFactory ensures that Logger.findCaller gets patched.
159 """
160 LoggerFactory()
161
162 assert logging.getLoggerClass() is _FixedFindCallerLogger
163
164 def test_positional_argument_avoids_guessing(self):
165 """

Callers

nothing calls this directly

Calls 1

LoggerFactoryClass · 0.90

Tested by

no test coverage detected