From 73be58611070f5eff92e40a1344fd8366f850ef4 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 21 Jun 2026 13:37:55 -0600 Subject: [PATCH] =?UTF-8?q?plan(SP22):=20Task=204=20review=20fix=20?= =?UTF-8?q?=E2=80=94=20client()=20fixture=20must=20enter=20async=20context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The verbatim plan returned an un-entered CycloneClient from the fixture, causing all 3 tests to fail with 'use async with CycloneClient(...)'. Convert fixture to async generator that enters the context. Verified by running pytest tests/test_api_client.py -v → 3 passed. --- docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md b/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md index c5017ce..ded566c 100644 --- a/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md +++ b/docs/superpowers/plans/2026-06-21-cyclone-pipeline-agent.md @@ -645,8 +645,9 @@ from cyclone_pipeline.api_client import CycloneClient, HealthSnapshot, Scheduler @pytest.fixture -def client(): - return CycloneClient(api_base="http://test:8000") +async def client(): + async with CycloneClient(api_base="http://test:8000") as c: + yield c @pytest.mark.asyncio