
Pytest Code Review
A structured review process for pytest test files that forces you to work through five gates before flagging issues: scoping which test files you're looking at, identifying async versus sync patterns, checking fixture usage, validating mock and patch locations, and finally documenting specific findings with line numbers. It's opinionated about the order you review things, which is either helpful discipline or annoying process depending on whether you usually skip straight to nitpicking parametrize usage before confirming the async tests are even using AsyncMock correctly. The gate system prevents generic advice and makes you cite actual file paths and test node IDs. Best when you're reviewing pull requests with test changes and want to avoid the usual back and forth about whether fixtures are cleaned up or mocks are patched at the call site.
- skills.sh installs
- 232
- GitHub stars
- 87
- last updated
- Aug 21, 2026
Install
$ npx -y skills add existential-birds/beagle --skill pytest-code-review --agent claude-codeInstalls into .claude/skills of the current project.
Files
Pytest Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
| async def test_*, AsyncMock, await patterns | references/async-testing.md |
| conftest.py, factory fixtures, scope, cleanup | references/fixtures.md |
| @pytest.mark.parametrize, DRY patterns | references/parametrize.md |
| AsyncMock tracking, patch patterns, when to mock | references/mocking.md |
Review gates
Work in order. Do not assert pytest-specific problems until each applicable gate passes.
Sponsors
Details
- Repository
- github.com/existential-birds/beagle
- Categories
- Testing & QA, Git & Pull Requests, Code Review & Quality, Python
- First seen
- Jun 3, 2026
More from existential-birds/beagle
All 40- Sqlalchemy Code Review225
- Pydantic Ai Common Pitfalls221
- Pydantic Ai Agent Creation219
- Agent Architecture Analysis217
- Ai Elements209
- Go Code Review204
- Shadcn Code Review204
- Swift Testing Code Review194
- Sqlite Vec171
- Pydantic Ai Tool System161
- Deepagents Architecture160
- Langgraph Implementation160
- Pydantic Ai Testing146
- Pydantic Ai Dependency Injection141
- Deepagents Implementation140
- Deepagents Code Review132
- Github Projects120
- Pydantic Ai Model Integration120
- React Flow1.3K
- Python Code Review928
- Langgraph Code Review887
- Tailwind V4817
- React Flow Advanced643
- React Router V7577