mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
test: drop dead MAIN_PM delete that broke lifecycle isolation across test files
This commit is contained in:
@@ -37,9 +37,8 @@ from roboco.models.base import (
|
|||||||
)
|
)
|
||||||
from roboco.services.gateway.choreographer import Choreographer, ChoreographerDeps
|
from roboco.services.gateway.choreographer import Choreographer, ChoreographerDeps
|
||||||
from roboco.services.task import TaskService
|
from roboco.services.task import TaskService
|
||||||
from sqlalchemy import delete
|
|
||||||
|
|
||||||
# #172: a developer fresh claim must carry a substantive step checklist.
|
# A developer fresh claim must carry a substantive step checklist.
|
||||||
_STEPS = [
|
_STEPS = [
|
||||||
{
|
{
|
||||||
"title": "Implement the change",
|
"title": "Implement the change",
|
||||||
@@ -638,19 +637,11 @@ async def test_pm_complete_simple_task(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""awaiting_pm_review → cell_pm complete → completed.
|
"""awaiting_pm_review → cell_pm complete → completed.
|
||||||
|
|
||||||
Post-#178: cell PM completing a non-root awaiting_pm_review task
|
A cell PM completing a non-root awaiting_pm_review task transitions
|
||||||
always transitions straight to COMPLETED — there is no longer a
|
straight to COMPLETED — there is no cell→main escalation in
|
||||||
cell→main escalation in ``complete`` (the old branch is gone; the
|
``complete`` (the cell→main hand-off, when intended, uses
|
||||||
cell→main hand-off, when intended, uses ``submit_up``). The
|
``submit_up``).
|
||||||
MAIN_PM deletion below is now a historical artifact (kept because
|
|
||||||
other tests in this file rely on the same isolation pattern); it
|
|
||||||
no longer affects this test's outcome.
|
|
||||||
"""
|
"""
|
||||||
await db_session.execute(
|
|
||||||
delete(AgentTable).where(AgentTable.role == AgentRole.MAIN_PM)
|
|
||||||
)
|
|
||||||
await db_session.flush()
|
|
||||||
|
|
||||||
task = lifecycle_setup["task"]
|
task = lifecycle_setup["task"]
|
||||||
cell_pm_agent = lifecycle_setup["cell_pm_agent"]
|
cell_pm_agent = lifecycle_setup["cell_pm_agent"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user