Skip to content

Commit 19173e7

Browse files
giulio-leoneCopilot
andcommitted
test(graph): format nested graph reset regression
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e99c5bb commit 19173e7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/strands/multiagent/test_graph.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,6 +2477,7 @@ def test_find_newly_ready_nodes_only_evaluates_outbound_edges():
24772477
ready_ids = {n.node_id for n in ready}
24782478
assert ready_ids == {"E"}, f"Expected only E, got {ready_ids}"
24792479

2480+
24802481
@pytest.mark.asyncio
24812482
async def test_reset_executor_state_preserves_graph_state_for_nested_graph():
24822483
"""Verify reset_executor_state does not corrupt MultiAgentBase state.
@@ -2504,8 +2505,6 @@ async def test_reset_executor_state_preserves_graph_state_for_nested_graph():
25042505
node.reset_executor_state()
25052506

25062507
# After reset, the executor's state must still be GraphState
2507-
assert isinstance(inner_graph.state, GraphState), (
2508-
"reset_executor_state overwrote GraphState with AgentState"
2509-
)
2508+
assert isinstance(inner_graph.state, GraphState), "reset_executor_state overwrote GraphState with AgentState"
25102509
assert node.execution_status == Status.PENDING
25112510
assert node.result is None

0 commit comments

Comments
 (0)