MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / test_streamtologger_init

Function test_streamtologger_init

tests/models/test_logging.py:29–36  ·  view source on GitHub ↗

Test StreamToLogger initialization.

()

Source from the content-addressed store, hash-verified

27
28
29def test_streamtologger_init():
30 """Test StreamToLogger initialization."""
31 logger = logging.getLogger("test")
32 stream = StreamToLogger(logger, log_level=logging.DEBUG)
33
34 assert stream.logger == logger
35 assert stream.log_level == logging.DEBUG
36 assert stream.linebuf == ""
37
38
39def test_streamtologger_write_single_line():

Callers

nothing calls this directly

Calls 1

StreamToLoggerClass · 0.90

Tested by

no test coverage detected