decomposer: scaffold crucible-agent-build-fastapi-endpoint
Some checks failed
ci / test (push) Has been cancelled

This commit is contained in:
2026-08-09 16:00:21 +00:00
parent 874b415d18
commit be66f6bec0

View File

@@ -1,15 +1 @@
from collections.abc import AsyncIterator # Env var setup that must run before app.config is imported.
import httpx
import pytest
from app.config import Settings
from app.main import create_app
from app.store import MonitorStore
@pytest.fixture
async def client() -> AsyncIterator[httpx.AsyncClient]:
app = create_app(settings=Settings(), store=MonitorStore())
transport = httpx.ASGITransport(app=app)
async with httpx.AsyncClient(transport=transport, base_url="http://test") as value:
yield value