decomposer: scaffold crucible-agent-build-fastapi-endpoint
Some checks failed
ci / test (push) Has been cancelled
Some checks failed
ci / test (push) Has been cancelled
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user