File size: 237 Bytes
1243c9b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from fastapi.testclient import TestClient
from main import app

client = TestClient(app)

def test_root_health():
    resp = client.get("/")
    assert resp.status_code == 200
    body = resp.json()
    assert "status" in body