Commit 6a5e41a
feat: Add API integration tests for summarize module
- Add comprehensive Claude API integration tests (9 new tests)
- Test real API calls for documentation generation
- Test multiple scenarios: single file, multiple files, breaking changes
- Test YAML extraction, prompt building, and markdown generation
- Add pytest markers for API tests (skipped by default)
- Tests run with: pytest -m api
Coverage improvements:
- Summarize module: 12% → 93%
- Overall coverage: 59% → 65%
- All 105 tests passing (96 regular + 9 API)
API tests are marked with @pytest.mark.api and automatically skip
if ANTHROPIC_API_KEY is not set. This prevents accidental API costs
during CI/CD while allowing optional real API validation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 7085dfa commit 6a5e41a
File tree
2 files changed
+448
-0
lines changed- tests/integration
2 files changed
+448
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
0 commit comments