We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e62128 commit 1d445d3Copy full SHA for 1d445d3
1 file changed
tests/test_routes.py
@@ -11,7 +11,11 @@ def test_root_returns_welcome_message() -> None:
11
"""GET / should return a welcome message."""
12
response = client.get("/")
13
assert response.status_code == 200
14
- assert response.json() == {"message": "Welcome to NX AI!"}
+ json_data = response.json()
15
+ assert "meta" in json_data
16
+ assert "data" in json_data
17
+ assert "message" in json_data["meta"]
18
+ assert "NX AI" in json_data["meta"]["message"]
19
20
21
def test_health_returns_ok() -> None:
0 commit comments