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

Function test_handle_client_empty

tests/api_utils/test_stream.py:53–59  ·  view source on GitHub ↗
(proxy_server)

Source from the content-addressed store, hash-verified

51
52@pytest.mark.asyncio
53async def test_handle_client_empty(proxy_server):
54 reader = AsyncMock()
55 writer = AsyncMock()
56 reader.readline.return_value = b""
57
58 await proxy_server.handle_client(reader, writer)
59 writer.close.assert_called()
60
61
62@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

handle_clientMethod · 0.80

Tested by

no test coverage detected