Skip to content

Commit 88fe20d

Browse files
committed
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.
1 parent 18f2c80 commit 88fe20d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Python°](app/static/python.png)
44

5-
> Production-ready, open-source FastAPI application with PostgreSQL and blazing-fast full-text search.
5+
> Production ready, open-source FastAPI application with PostgreSQL and blazing-fast full-text search
66
77
#### Overview
88

tests/test_routes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
client = TestClient(app)
88

99
def test_root_returns_welcome_message() -> None:
10-
"""GET / should reply in the first person."""
10+
"""GET / should return API metadata."""
1111
response = client.get("/")
1212
assert response.status_code == 200
1313
json_data = response.json()
1414
assert "meta" in json_data
15-
assert "data" in json_data
1615
assert "title" in json_data["meta"]
1716

1817
def test_health_returns_ok() -> None:

0 commit comments

Comments
 (0)