Files
orion/tests/integration/api/v1/vendor
Samir Boulahtit 84a523cd7b fix: resolve email settings architecture violations and add tests/docs
- 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>
2026-01-05 22:38:10 +01:00
..
2025-11-21 23:16:21 +01:00
2025-11-21 23:16:21 +01:00

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 API
  • test_vendor_with_vendor_user - Vendor with VendorUser association

See Also