Files
arbitrade/tests/test_health.py
T
zwitschi f3f369ad6b
CI / lint-test-build (push) Failing after 8m23s
Add initial project structure with Docker, CI, and FastAPI setup
- Create Dockerfile and docker-compose.yml for containerization
- Add CI configuration for linting and testing
- Implement FastAPI application with health check routes
- Set up database schema using DuckDB
- Include environment configuration and secrets management
- Add README with project objectives and key features
- Implement logging setup and configuration
- Create initial tests for health route
- Add HTML templates for web interface
2026-06-01 09:15:38 +02:00

15 lines
453 B
Python

import httpx
from arbitrade.api.app import create_app
from arbitrade.config.settings import Settings
async def test_health_route_returns_ok() -> None:
app = create_app(Settings())
transport = httpx.ASGITransport(app=app)
async with httpx.AsyncClient(transport=transport, base_url="http://test") as client:
response = await client.get("/health")
assert response.status_code == 200
assert response.json()["status"] == "ok"