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,16 +1 @@
|
||||
import httpx
|
||||
import pytest_asyncio
|
||||
|
||||
from endpoint_monitor.config import Settings
|
||||
from endpoint_monitor.main import create_app
|
||||
|
||||
|
||||
@pytest_asyncio.fixture
|
||||
async def app():
|
||||
return create_app(Settings(max_monitors=10, request_timeout_seconds=1, max_redirects=2))
|
||||
|
||||
|
||||
@pytest_asyncio.fixture
|
||||
async def client(app):
|
||||
async with httpx.AsyncClient(transport=httpx.ASGITransport(app=app), base_url="http://test") as value:
|
||||
yield value
|
||||
# Env var setup that must run before app.config is imported.
|
||||
|
||||
Reference in New Issue
Block a user