Files
Gitea_Action_Test/backend/tests/test_main.py
2025-10-17 14:05:14 -07:00

12 lines
243 B
Python

from fastapi.testclient import TestClient
from main import app
client = TestClient(app)
def test_read_root():
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": "Hello, World!"}