add exchange table
All checks were successful
Backend CI / unit-test (push) Successful in 35s

This commit is contained in:
2025-09-22 14:33:32 +02:00
parent 76cc967c42
commit 1fbc93353d
17 changed files with 446 additions and 92 deletions

18
backend/tests/test_app.py Normal file
View File

@@ -0,0 +1,18 @@
from collections.abc import Generator
import pytest
from fastapi.testclient import TestClient
from app import API_BASE, app
@pytest.fixture
def client() -> Generator[TestClient, None, None]:
with TestClient(app) as client:
yield client
def test_get_status(client: TestClient) -> None:
response = client.get(f"{API_BASE}/status")
assert response.status_code == 200
assert response.json() == {"status": "ok"}