initial commit

This commit is contained in:
2025-09-11 18:24:36 +00:00
commit ba58bb60ec
16 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import pytest
from fastapi.testclient import TestClient
from app import app
@pytest.fixture
def client():
with TestClient(app) as client:
yield client
def test_home_route(client):
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": "Hello"}
def test_about_route(client):
response = client.get("/about")
assert response.status_code == 200
assert response.json() == {"message": "This is the about page."}