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

Method test_alog

tests/test_stdlib.py:411–425  ·  view source on GitHub ↗

Alog logs async at the correct level.

(self, cl)

Source from the content-addressed store, hash-verified

409 ] == cl.calls
410
411 async def test_alog(self, cl):
412 """
413 Alog logs async at the correct level.
414 """
415 bl = build_bl(cl, processors=[])
416
417 await bl.alog(logging.INFO, "foo %s", "bar")
418
419 assert [
420 CapturedCall(
421 method_name="info",
422 args=(),
423 kwargs={"positional_args": ("bar",), "event": "foo %s"},
424 )
425 ] == cl.calls
426
427 async def test_aexception_exc_info_true(self, cl):
428 """

Callers

nothing calls this directly

Calls 3

CapturedCallClass · 0.90
build_blFunction · 0.70
alogMethod · 0.45

Tested by

no test coverage detected