Skip to content

Commit 83787d9

Browse files
committed
Added tests
1 parent 91e0c4b commit 83787d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/opentelemetry-instrumentation-openai_agents/tests/test_openai_agents.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ def test_openai_agent(test_agent, mock_instrumentor):
4545

4646
@pytest.mark.asyncio
4747
async def test_runner_mocked_output():
48-
agent = test_agent()
48+
agent = Agent(
49+
name="MockAgent",
50+
instructions="Just mock it",
51+
model="fake-model"
52+
)
4953
mock_result = AsyncMock()
5054
mock_result.final_output = "Hello, this is a mocked response!"
5155

0 commit comments

Comments
 (0)