MCPcopy Create free account
hub / github.com/Delgan/loguru / test_using_logging_function

Function test_using_logging_function

tests/test_interception.py:160–166  ·  view source on GitHub ↗
(writer)

Source from the content-addressed store, hash-verified

158
159
160def test_using_logging_function(writer):
161 with make_logging_logger(None, InterceptHandler()):
162 logger.add(writer, format="{function} {line} {module} {file.name} {message}")
163 logging.warning("ABC")
164
165 result = writer.read()
166 assert result == "test_using_logging_function 163 test_interception test_interception.py ABC\n"

Callers

nothing calls this directly

Calls 5

make_logging_loggerFunction · 0.85
InterceptHandlerClass · 0.85
addMethod · 0.80
warningMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected