Files
orion/tests/integration/api/v1/vendor
Samir Boulahtit 0c63f387aa refactor: migrate models to canonical module locations
- Move Product/ProductTranslation to app/modules/catalog/models/
- Move VendorOnboarding to app/modules/marketplace/models/
- Delete legacy re-export files for marketplace models:
  - letzshop.py, marketplace.py, marketplace_product.py
  - marketplace_product_translation.py, marketplace_import_job.py
- Delete legacy product.py, product_translation.py, onboarding.py
- Update all imports across services, tasks, tests to use module locations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 14:45:32 +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