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

Method test_repr

tests/test_base.py:30–38  ·  view source on GitHub ↗

repr() of a BoundLoggerBase shows its context and processors.

(self)

Source from the content-addressed store, hash-verified

28
29class TestBinding:
30 def test_repr(self):
31 """
32 repr() of a BoundLoggerBase shows its context and processors.
33 """
34 bl = build_bl(processors=[1, 2, 3], context={"A": "B"})
35
36 assert (
37 "<BoundLoggerBase(context={'A': 'B'}, processors=[1, 2, 3])>"
38 ) == repr(bl)
39
40 def test_binds_independently(self):
41 """

Callers

nothing calls this directly

Calls 1

build_blFunction · 0.70

Tested by

no test coverage detected