Repository navigation
Add API response contract tests - #60
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e79e2539d6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,45 @@ | |||
| from fastapi.testclient import TestClient | |||
There was a problem hiding this comment.
Declare httpx before importing TestClient
In a clean CI environment, this import fails during test collection because Starlette's TestClient requires the optional httpx package. The workflow in .github/workflows/ci.yml installs only the package and pytest, while pyproject.toml does not declare httpx, so this commit makes the test job consistently fail with ModuleNotFoundError: No module named 'httpx'; add it to the project's test dependencies and install those dependencies in CI.
Useful? React with 👍 / 👎.
Summary
Adds focused HTTP contract tests for the local FastAPI app.
Changes
/healththroughTestClient./commandsthroughTestClientwith a JSON request body.Closes #47.
Validation