@@ -70,7 +70,7 @@ async def test_stream_basic(
7070
7171 sse_body = _build_sse_response (* events )
7272 httpx_mock .add_response (
73- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
73+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
7474 content = sse_body .encode (),
7575 headers = {"Content-Type" : "text/event-stream" },
7676 )
@@ -103,7 +103,7 @@ async def test_stream_server_error(
103103 from axonflow .exceptions import AxonFlowError
104104
105105 httpx_mock .add_response (
106- url = "https://test.axonflow.com/api/v1/executions/nonexistent/stream" ,
106+ url = "https://test.axonflow.com/api/v1/unified/ executions/nonexistent/stream" ,
107107 status_code = 404 ,
108108 content = b'{"error": "Execution not found"}' ,
109109 )
@@ -125,7 +125,7 @@ async def test_stream_sse_comments_ignored(
125125 sse_body = f": keep-alive\n \n \n \n data: { json .dumps (event )} \n \n "
126126
127127 httpx_mock .add_response (
128- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
128+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
129129 content = sse_body .encode (),
130130 headers = {"Content-Type" : "text/event-stream" },
131131 )
@@ -149,7 +149,7 @@ async def test_stream_invalid_json_skipped(
149149 sse_body = f"data: {{invalid json}}\n \n data: { json .dumps (valid_event )} \n \n "
150150
151151 httpx_mock .add_response (
152- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
152+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
153153 content = sse_body .encode (),
154154 headers = {"Content-Type" : "text/event-stream" },
155155 )
@@ -180,7 +180,7 @@ async def test_stream_failed_terminal(
180180
181181 sse_body = _build_sse_response (* events )
182182 httpx_mock .add_response (
183- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
183+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
184184 content = sse_body .encode (),
185185 headers = {"Content-Type" : "text/event-stream" },
186186 )
@@ -208,7 +208,7 @@ async def test_stream_cancelled_terminal(
208208
209209 sse_body = _build_sse_response (* events )
210210 httpx_mock .add_response (
211- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
211+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
212212 content = sse_body .encode (),
213213 headers = {"Content-Type" : "text/event-stream" },
214214 )
@@ -256,7 +256,7 @@ async def test_stream_with_steps(
256256
257257 sse_body = _build_sse_response (event )
258258 httpx_mock .add_response (
259- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
259+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
260260 content = sse_body .encode (),
261261 headers = {"Content-Type" : "text/event-stream" },
262262 )
@@ -290,7 +290,7 @@ async def test_stream_map_plan_type(
290290
291291 sse_body = _build_sse_response (event )
292292 httpx_mock .add_response (
293- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
293+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
294294 content = sse_body .encode (),
295295 headers = {"Content-Type" : "text/event-stream" },
296296 )
@@ -317,7 +317,7 @@ async def test_stream_data_prefix_no_space(
317317 sse_body = f"data:{ json .dumps (event )} \n \n "
318318
319319 httpx_mock .add_response (
320- url = "https://test.axonflow.com/api/v1/executions/exec_stream_1/stream" ,
320+ url = "https://test.axonflow.com/api/v1/unified/ executions/exec_stream_1/stream" ,
321321 content = sse_body .encode (),
322322 headers = {"Content-Type" : "text/event-stream" },
323323 )
0 commit comments