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

Method test_exception_exc_info

tests/test_stdlib.py:330–338  ·  view source on GitHub ↗

BoundLogger.exception sets exc_info=True.

(self)

Source from the content-addressed store, hash-verified

328 assert WARN == bl.get_effective_level()
329
330 def test_exception_exc_info(self):
331 """
332 BoundLogger.exception sets exc_info=True.
333 """
334 bl = BoundLogger(ReturnLogger(), [], {})
335
336 assert ((), {"exc_info": True, "event": "event"}) == bl.exception(
337 "event"
338 )
339
340 def test_exception_exc_info_override(self):
341 """

Callers

nothing calls this directly

Calls 3

exceptionMethod · 0.95
BoundLoggerClass · 0.90
ReturnLoggerClass · 0.90

Tested by

no test coverage detected