Skip to content

Commit 8e0e7e5

Browse files
committed
🧪 modify test_run_agent.py
1 parent 21c9488 commit 8e0e7e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎test/sdk/core/agents/test_run_agent.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def test_agent_run_thread_handles_internal_exception(basic_agent_run_info, mock_
297297

298298
@pytest.mark.asyncio
299299
async def test_agent_run_thread_creation_and_start(basic_agent_run_info, monkeypatch):
300-
"""Test that agent_run creates and starts a thread correctly (lines 54-56)."""
300+
"""Test that agent_run creates and starts a thread correctly."""
301301
# Mock the agent_run_thread function to avoid actual execution
302302
mock_agent_run_thread = MagicMock()
303303
monkeypatch.setattr(run_agent, "agent_run_thread", mock_agent_run_thread)
@@ -316,14 +316,14 @@ async def test_agent_run_thread_creation_and_start(basic_agent_run_info, monkeyp
316316
async for message in run_agent.agent_run(basic_agent_run_info):
317317
messages.append(message)
318318

319-
# Verify Thread was created with correct target and args (line 55)
319+
# Verify Thread was created with correct target and args
320320
mock_thread_class.assert_called_once_with(
321321
target=mock_agent_run_thread,
322322
args=(basic_agent_run_info,)
323323
)
324324

325-
# Verify thread was started (line 56)
325+
# Verify thread was started
326326
mock_thread_instance.start.assert_called_once()
327327

328-
# Verify observer was accessed (line 54)
328+
# Verify observer was accessed
329329
assert basic_agent_run_info.observer is not None

0 commit comments

Comments
 (0)