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

Method test_new_keeps_class

tests/test_base.py:91–101  ·  view source on GitHub ↗

Clearing context does not change the type of the bound logger.

(self)

Source from the content-addressed store, hash-verified

89 assert isinstance(b.bind(), Wrapper)
90
91 def test_new_keeps_class(self):
92 """
93 Clearing context does not change the type of the bound logger.
94 """
95
96 class Wrapper(BoundLoggerBase):
97 pass
98
99 b = Wrapper(None, [], {})
100
101 assert isinstance(b.new(), Wrapper)
102
103 def test_unbind(self):
104 """

Callers

nothing calls this directly

Calls 2

WrapperClass · 0.70
newMethod · 0.45

Tested by

no test coverage detected