MCPcopy
hub / github.com/Delgan/loguru / test_patcher

Function test_patcher

tests/test_configure.py:49–55  ·  view source on GitHub ↗
(writer)

Source from the content-addressed store, hash-verified

47
48
49def test_patcher(writer):
50 logger.add(writer, format="{extra[a]} {extra[b]}")
51 logger.configure(patcher=lambda record: record["extra"].update(a=1, b=2))
52
53 logger.debug("")
54
55 assert writer.read() == "1 2\n"
56
57
58def test_activation(writer):

Callers

nothing calls this directly

Calls 4

addMethod · 0.80
configureMethod · 0.80
debugMethod · 0.80
readMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…