Skip to content

Commit ca83818

Browse files
committed
test(runners): Mark legacy nested agent tests as xfail
These tests fail because of event ordering differences in V2 and will be deprecated. Change-Id: I764714c2966c9b976337ce8af0a14fe64c0373df
1 parent 0b5f4bf commit ca83818

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/unittests/agents/test_resumable_llm_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def _behavioral_events(events):
5858
]
5959

6060

61+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
6162
@pytest.mark.asyncio
6263
async def test_resume_from_transfer():
6364
"""Tests that the agent resumes from the correct sub-agent after a transfer.
@@ -196,6 +197,7 @@ async def test_resume_from_tool_call():
196197
]
197198

198199

200+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
199201
@pytest.mark.asyncio
200202
async def test_resume_subagent_after_transfer_and_tool_call():
201203
"""Tests resuming a sub-agent that called a tool after being transferred to.

tests/unittests/runners/test_pause_invocation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def test_pause_first_agent_on_long_running_function_call(
168168
("sub_agent_1", Part.from_function_call(name="test_tool", args={})),
169169
]
170170

171+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
171172
@pytest.mark.asyncio
172173
def test_pause_second_agent_on_long_running_function_call(
173174
self,
@@ -395,6 +396,7 @@ def agent(self) -> BaseAgent:
395396
max_iterations=2,
396397
)
397398

399+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
398400
@pytest.mark.asyncio
399401
def test_pause_on_long_running_function_call(
400402
self,
@@ -448,6 +450,7 @@ def agent(self) -> LlmAgent:
448450
sub_agents=[sub_llm_agent_1, sub_llm_agent_2],
449451
)
450452

453+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
451454
@pytest.mark.asyncio
452455
def test_pause_on_long_running_function_call(
453456
self,
@@ -504,6 +507,7 @@ def agent(self) -> LlmAgent:
504507
tools=[LongRunningFunctionTool(func=test_tool)],
505508
)
506509

510+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
507511
@pytest.mark.asyncio
508512
def test_pause_on_long_running_function_call(
509513
self,

tests/unittests/runners/test_resume_invocation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_tool():
4242
return None
4343

4444

45+
@pytest.mark.xfail(reason="Tests implementation details that are different in V2 and will be deprecated.")
4546
@pytest.mark.asyncio
4647
async def test_resume_invocation_from_sub_agent():
4748
"""A test case for an edge case, where an invocation-to-resume starts from a sub-agent.

0 commit comments

Comments
 (0)