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

Method test_log_method

tests/test_stdlib.py:1572–1578  ·  view source on GitHub ↗

The `log` method is proxied too.

(self, abl, cl)

Source from the content-addressed store, hash-verified

1570
1571 @pytest.mark.asyncio
1572 async def test_log_method(self, abl, cl):
1573 """
1574 The `log` method is proxied too.
1575 """
1576 await abl.bind(foo="bar").log(logging.ERROR, "42")
1577
1578 assert "error" == cl.calls[0].method_name
1579
1580 @pytest.mark.asyncio
1581 async def test_exception(self, abl, cl):

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected