Skip to content

Commit cc41464

Browse files
committed
Fixes snapshot in test
1 parent 6e14eb4 commit cc41464

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/test_prefect.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ async def run_complex_agent() -> Response:
299299
children=[
300300
BasicSpan(content='ctx.run_step=1'),
301301
BasicSpan(
302-
content='{"result":{"tool_name":"get_country","content":"Mexico","tool_call_id":"call_rI3WKPYvVwlOgCGRjsPP2hEx","metadata":null,"timestamp":"2025-10-13T17:36:59.340579+00:00","part_kind":"tool-return"},"content":null,"event_kind":"function_tool_result"}'
302+
content=IsStr(
303+
regex=r'\{"result":\{"tool_name":"get_country","content":"Mexico","tool_call_id":"call_rI3WKPYvVwlOgCGRjsPP2hEx","metadata":null,"timestamp":"[^"]+","part_kind":"tool-return"\},"content":null,"event_kind":"function_tool_result"\}'
304+
)
303305
),
304306
],
305307
),
@@ -372,7 +374,9 @@ async def run_complex_agent() -> Response:
372374
children=[
373375
BasicSpan(content='ctx.run_step=2'),
374376
BasicSpan(
375-
content='{"result":{"tool_name":"get_product_name","content":"Pydantic AI","tool_call_id":"call_SkGkkGDvHQEEk0CGbnAh2AQw","metadata":null,"timestamp":"2025-10-13T17:36:59.407064+00:00","part_kind":"tool-return"},"content":null,"event_kind":"function_tool_result"}'
377+
content=IsStr(
378+
regex=r'\{"result":\{"tool_name":"get_product_name","content":"Pydantic AI","tool_call_id":"call_SkGkkGDvHQEEk0CGbnAh2AQw","metadata":null,"timestamp":"[^"]+","part_kind":"tool-return"\},"content":null,"event_kind":"function_tool_result"\}'
379+
)
376380
),
377381
],
378382
),
@@ -390,7 +394,9 @@ async def run_complex_agent() -> Response:
390394
children=[
391395
BasicSpan(content='ctx.run_step=2'),
392396
BasicSpan(
393-
content='{"result":{"tool_name":"get_weather","content":"sunny","tool_call_id":"call_NS4iQj14cDFwc0BnrKqDHavt","metadata":null,"timestamp":"2025-10-13T17:36:59.442214+00:00","part_kind":"tool-return"},"content":null,"event_kind":"function_tool_result"}'
397+
content=IsStr(
398+
regex=r'\{"result":\{"tool_name":"get_weather","content":"sunny","tool_call_id":"call_NS4iQj14cDFwc0BnrKqDHavt","metadata":null,"timestamp":"[^"]+","part_kind":"tool-return"\},"content":null,"event_kind":"function_tool_result"\}'
399+
)
394400
),
395401
],
396402
),

0 commit comments

Comments
 (0)