From 88fe20dd78e12ff27bc057dce1dc7ce8079e4e77 Mon Sep 17 00:00:00 2001 From: Wei Zang Date: Fri, 24 Apr 2026 20:04:39 +0100 Subject: [PATCH] Adjust README copy and root route test Minor README copy edit ('Production-ready' -> 'Production ready' and removed trailing period) and update tests to match the API response. The root endpoint test docstring was updated to reflect that the endpoint returns API metadata, and the assertion for a top-level 'data' key was removed so the test now only checks for 'meta' and 'meta.title'. This aligns tests with the current response structure. --- README.md | 2 +- tests/test_routes.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb58691..24d1695 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![Python°](app/static/python.png) -> Production-ready, open-source FastAPI application with PostgreSQL and blazing-fast full-text search. +> Production ready, open-source FastAPI application with PostgreSQL and blazing-fast full-text search #### Overview diff --git a/tests/test_routes.py b/tests/test_routes.py index 8d7a81d..fa14391 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -7,12 +7,11 @@ client = TestClient(app) def test_root_returns_welcome_message() -> None: - """GET / should reply in the first person.""" + """GET / should return API metadata.""" response = client.get("/") assert response.status_code == 200 json_data = response.json() assert "meta" in json_data - assert "data" in json_data assert "title" in json_data["meta"] def test_health_returns_ok() -> None: