14 lines
343 B
Python
14 lines
343 B
Python
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"}
|
|
|