- Fix API-002 in admin/settings.py: use service layer for DB delete - Fix API-001/API-003 in vendor/email_settings.py: add Pydantic response models, remove HTTPException raises - Fix SVC-002/SVC-006 in vendor_email_settings_service.py: use domain exceptions, change db.commit() to db.flush() - Add unit tests for VendorEmailSettingsService - Add integration tests for vendor and admin email settings APIs - Add user guide (docs/guides/email-settings.md) - Add developer guide (docs/implementation/email-settings.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Vendor API Integration Tests
Documentation
For comprehensive vendor API testing documentation, please see:
Vendor API Testing Guide in MkDocs
Quick Start
# Run all vendor tests
pytest tests/integration/api/v1/vendor/ -v
# Run with coverage
pytest tests/integration/api/v1/vendor/ \
--cov=app/api/v1/vendor \
--cov-report=html
Test Files
test_authentication.py- Authentication tests (30+ tests)test_dashboard.py- Dashboard stats tests (12 tests)
Fixtures
Key fixtures for vendor testing:
vendor_user_headers- Authentication headers for vendor APItest_vendor_with_vendor_user- Vendor with VendorUser association
See Also
- Vendor API Testing Guide - Full documentation
- Test Structure - Overall test organization