1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/backend/tests/test_health.py
MoonTestUse1 21e4194909 Fix database
2025-01-07 06:46:37 +06:00

12 lines
309 B
Python

"""Health check tests"""
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_check():
"""Test health check endpoint"""
response = client.get("/api/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}