Spaces:
Sleeping
Sleeping
| import sys | |
| import os | |
| sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) | |
| from main import app | |
| from fastapi.testclient import TestClient | |
| client = TestClient(app) | |
| def test_health(): | |
| response = client.get("/") | |
| assert response.status_code == 200 | |