3v324v23's picture
Auto deploy backend
1670833
raw
history blame contribute delete
281 Bytes
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