Bootstrap Python rewrite skeleton

This commit is contained in:
2026-04-19 20:19:58 +02:00
parent 7818a3fb44
commit 31390882ef
72 changed files with 2273 additions and 62 deletions
+15
View File
@@ -0,0 +1,15 @@
import pytest
from fastapi.testclient import TestClient
from app.main import create_app
@pytest.fixture
def app():
return create_app()
@pytest.fixture
def client(app):
with TestClient(app) as test_client:
yield test_client
+13
View File
@@ -0,0 +1,13 @@
from fastapi.testclient import TestClient
def test_app_starts(client: TestClient) -> None:
response = client.get("/")
assert response.status_code == 200
def test_status_endpoint(client: TestClient) -> None:
response = client.get("/status")
assert response.status_code == 200
assert response.json() == {"status": "ok"}