Files
orion/tests/integration/api/v1/admin
Samir Boulahtit 9d28210cf1 test: add tests for platform assignment in user/vendor creation
Unit tests (test_admin_service.py):
- Vendor creation without platforms
- Vendor creation with single platform
- Vendor creation with multiple platforms
- Vendor creation with invalid platform ID (ignored)
- Vendor creation with duplicate code/subdomain (fails)
- Vendor creation with invalid company ID (fails)

Integration tests (test_vendors.py):
- Create vendor via API without platforms
- Create vendor via API with platforms
- Create vendor with duplicate code fails (409)
- Non-admin cannot create vendors (403)

Auth tests (test_auth.py):
- Super admin login includes is_super_admin=true
- Platform admin login includes is_super_admin=false
- Get current super admin info includes is_super_admin

Total: 69 admin platform tests passing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 20:17:36 +01:00
..
2025-11-21 23:16:21 +01:00
2025-11-21 23:16:21 +01:00

Admin API Integration Tests

Documentation

For comprehensive testing documentation, see:

Test Structure Guide in MkDocs

Quick Start

# Run all admin tests
pytest tests/integration/api/v1/admin/ -v

Status

⚠️ Tests to be migrated from legacy test files.

See Test Structure Guide for migration details.