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

Function test_websocketloghandler_init

tests/models/test_logging.py:375–381  ·  view source on GitHub ↗

Test WebSocketLogHandler initialization.

()

Source from the content-addressed store, hash-verified

373
374
375def test_websocketloghandler_init():
376 """Test WebSocketLogHandler initialization."""
377 manager = MagicMock()
378 handler = WebSocketLogHandler(manager)
379
380 assert handler.manager == manager
381 assert isinstance(handler.formatter, logging.Formatter)
382
383
384@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

WebSocketLogHandlerClass · 0.90

Tested by

no test coverage detected