mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-16 14:12:20 -06:00
17 lines
404 B
Python
17 lines
404 B
Python
from fastapi.testclient import TestClient
|
|
|
|
from linkpulse.app import app
|
|
|
|
|
|
def test_health():
|
|
with TestClient(app) as client:
|
|
response = client.get("/health")
|
|
assert response.status_code == 200
|
|
assert response.json() == "OK"
|
|
|
|
|
|
def test_migration():
|
|
with TestClient(app) as client:
|
|
response = client.get("/api/migration")
|
|
assert response.status_code == 200
|