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

Function test_start_stream_proxy_disabled

tests/api_utils/test_app.py:302–306  ·  view source on GitHub ↗

Test _start_stream_proxy when STREAM_PORT is 0.

()

Source from the content-addressed store, hash-verified

300
301@pytest.mark.asyncio
302async def test_start_stream_proxy_disabled():
303 """Test _start_stream_proxy when STREAM_PORT is 0."""
304 with patch("api_utils.app.get_environment_variable", return_value="0"):
305 await _start_stream_proxy()
306 # Should do nothing
307
308
309@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

_start_stream_proxyFunction · 0.90

Tested by

no test coverage detected