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

Method test_deduces_correct_name

tests/test_stdlib.py:84–92  ·  view source on GitHub ↗

The factory isn't called directly but from structlog._config so deducing has to be slightly smarter.

(self)

Source from the content-addressed store, hash-verified

82 logging.setLoggerClass(self.original_logger)
83
84 def test_deduces_correct_name(self):
85 """
86 The factory isn't called directly but from structlog._config so
87 deducing has to be slightly smarter.
88 """
89 assert "tests.additional_frame" == (
90 additional_frame(LoggerFactory()).name
91 )
92 assert "tests.test_stdlib" == LoggerFactory()().name
93
94 def test_ignores_frames(self):
95 """

Callers

nothing calls this directly

Calls 2

additional_frameFunction · 0.90
LoggerFactoryClass · 0.90

Tested by

no test coverage detected