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

Method test_correct_levels

tests/test_stdlib.py:1550–1560  ·  view source on GitHub ↗

The proxy methods call the correct upstream methods.

(self, abl, cl, stdlib_log_method)

Source from the content-addressed store, hash-verified

1548
1549 @pytest.mark.asyncio
1550 async def test_correct_levels(self, abl, cl, stdlib_log_method):
1551 """
1552 The proxy methods call the correct upstream methods.
1553 """
1554 await getattr(abl.bind(foo="bar"), stdlib_log_method)("42")
1555
1556 aliases = {"warn": "warning"}
1557
1558 expect = aliases.get(stdlib_log_method, stdlib_log_method)
1559
1560 assert expect == cl.calls[0].method_name
1561
1562 @pytest.mark.asyncio
1563 async def test_correct_level_fatal(self, abl, cl):

Callers

nothing calls this directly

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected