Refactor code for improved readability and consistency
- Cleaned up whitespace and formatting across multiple files for better readability.
This commit is contained in:
@@ -21,7 +21,10 @@ class TestMainRoutes:
|
||||
"""Test the index route."""
|
||||
response = client.get("/api/")
|
||||
assert response.status_code == 200
|
||||
assert response.get_json() == {"message": "API is running", "status": "ok"}
|
||||
assert response.get_json() == {
|
||||
"message": "API is running",
|
||||
"status": "ok",
|
||||
}
|
||||
|
||||
def test_health_route(self, client) -> None:
|
||||
"""Test health check route."""
|
||||
@@ -34,4 +37,4 @@ class TestMainRoutes:
|
||||
response = client.get("/api/protected")
|
||||
assert response.status_code == 401
|
||||
data = response.get_json()
|
||||
assert data["error"] == "Authentication required (JWT or API token)"
|
||||
assert data["error"] == "Authentication required (JWT or API token)"
|
||||
|
||||
Reference in New Issue
Block a user