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

Function test_builtin

tests/api_utils/test_stream.py:170–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169@pytest.mark.asyncio
170async def test_builtin():
171 with (
172 patch("stream.main.ProxyServer") as mock_cls,
173 patch("pathlib.Path.mkdir", MagicMock()),
174 ):
175 mock_instance = AsyncMock()
176 mock_cls.return_value = mock_instance
177
178 await builtin(port=1234)
179
180 mock_cls.assert_called_once()
181 assert mock_cls.call_args[1]["port"] == 1234
182 mock_instance.start.assert_called_once()

Callers

nothing calls this directly

Calls 1

builtinFunction · 0.90

Tested by

no test coverage detected