Skip to content

Commit 4412d5e

Browse files
tests(openai-agents): Remove MagicMock from ModelResponse
1 parent 2397b15 commit 4412d5e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/integrations/openai_agents/test_openai_agents.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,6 @@ async def test_handoff_span(sentry_init, capture_events, mock_usage):
294294
name="transfer_to_secondary_agent",
295295
type="function_call",
296296
arguments="{}",
297-
function=MagicMock(
298-
name="transfer_to_secondary_agent", arguments="{}"
299-
),
300297
)
301298
],
302299
usage=mock_usage,
@@ -377,9 +374,6 @@ def simple_test_tool(message: str) -> str:
377374
name="simple_test_tool",
378375
type="function_call",
379376
arguments='{"message": "hello"}',
380-
function=MagicMock(
381-
name="simple_test_tool", arguments='{"message": "hello"}'
382-
),
383377
)
384378

385379
# First response with tool call
@@ -1111,9 +1105,6 @@ def failing_tool(message: str) -> str:
11111105
name="failing_tool",
11121106
type="function_call",
11131107
arguments='{"message": "test"}',
1114-
function=MagicMock(
1115-
name="failing_tool", arguments='{"message": "test"}'
1116-
),
11171108
)
11181109

11191110
# First response with tool call

0 commit comments

Comments
 (0)