13 lines
394 B
Python
13 lines
394 B
Python
"""Tests for the FastAPI application factory."""
|
|
|
|
from fastapi.testclient import TestClient
|
|
|
|
|
|
class TestCreateApp:
|
|
"""Tests for the application factory and basic setup."""
|
|
|
|
def test_app_starts_without_error(self, client: TestClient) -> None:
|
|
"""The app should initialize and serve requests."""
|
|
response = client.get("/health")
|
|
assert response.status_code == 200
|