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

Method test_sync_bl

tests/test_stdlib.py:1532–1540  ·  view source on GitHub ↗

AsyncBoungLogger.sync_bl works outside of loops.

(self, abl, cl)

Source from the content-addressed store, hash-verified

1530
1531class TestAsyncBoundLogger:
1532 def test_sync_bl(self, abl, cl):
1533 """
1534 AsyncBoungLogger.sync_bl works outside of loops.
1535 """
1536 abl.sync_bl.info("test")
1537
1538 assert [
1539 CapturedCall(method_name="info", args=(), kwargs={"event": "test"})
1540 ] == cl.calls
1541
1542 @pytest.mark.asyncio
1543 async def test_protocol(self, abl):

Callers

nothing calls this directly

Calls 2

CapturedCallClass · 0.90
infoMethod · 0.45

Tested by

no test coverage detected