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

Method test_proxies_log

tests/test_stdlib.py:220–227  ·  view source on GitHub ↗

BoundLogger.exception.log() is proxied to the appropriate method.

(self)

Source from the content-addressed store, hash-verified

218 assert "critical" == bl.fatal("event")
219
220 def test_proxies_log(self):
221 """
222 BoundLogger.exception.log() is proxied to the appropriate method.
223 """
224 bl = BoundLogger(ReturnLogger(), [return_method_name], {})
225
226 assert "critical" == bl.log(50, "event")
227 assert "debug" == bl.log(10, "event")
228
229 def test_positional_args_proxied(self):
230 """

Callers

nothing calls this directly

Calls 3

logMethod · 0.95
BoundLoggerClass · 0.90
ReturnLoggerClass · 0.90

Tested by

no test coverage detected