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

Function test_reset_previous_extra

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

Source from the content-addressed store, hash-verified

133
134
135def test_reset_previous_extra(writer):
136 logger.configure(extra={"a": 123})
137 logger.add(writer, format="{extra[a]}", catch=False)
138
139 logger.configure(extra={})
140
141 with pytest.raises(KeyError):
142 logger.debug("Nope")
143
144
145def test_reset_previous_patcher(writer):

Callers

nothing calls this directly

Calls 3

configureMethod · 0.80
addMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…