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

Function test_extra

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

Source from the content-addressed store, hash-verified

36
37
38def test_extra(writer):
39 extra = {"a": 1, "b": 9}
40
41 logger.add(writer, format="{extra[a]} {extra[b]}")
42 logger.configure(extra=extra)
43
44 logger.debug("")
45
46 assert writer.read() == "1 9\n"
47
48
49def test_patcher(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…