MCPcopy Index your code
hub / github.com/Delgan/loguru / test_patch_before_add

Function test_patch_before_add

tests/test_patch.py:12–17  ·  view source on GitHub ↗
(writer)

Source from the content-addressed store, hash-verified

10
11
12def test_patch_before_add(writer):
13 logger_patched = logger.patch(lambda r: r["extra"].update(a=0))
14 logger.add(writer, format="{extra[a]} {message}")
15 logger_patched.debug("A")
16
17 assert writer.read() == "0 A\n"
18
19
20def test_add_using_patched(writer):

Callers

nothing calls this directly

Calls 4

patchMethod · 0.80
addMethod · 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…