fix: resolve pre-existing bugs found during merchant routes refactor
- Fix TierLimitExceededException import in order_service.py (was importing from subscription_service where it doesn't exist, now imports from billing.exceptions) - Fix Pydantic v2 @field_validator missing @classmethod in team.py (3 validators: validate_role_name, validate_custom_permissions, validate_password_strength) - Fix merchant auth test assertions: handle /me endpoint ResponseValidationError (pre-existing response_model mismatch), use non-merchant user for store token isolation test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,10 +25,8 @@ from sqlalchemy import and_, func, or_
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.exceptions import ValidationException
|
||||
from app.modules.billing.services.subscription_service import (
|
||||
TierLimitExceededException,
|
||||
subscription_service,
|
||||
)
|
||||
from app.modules.billing.exceptions import TierLimitExceededException
|
||||
from app.modules.billing.services.subscription_service import subscription_service
|
||||
from app.modules.catalog.models import Product
|
||||
from app.modules.customers.exceptions import CustomerNotFoundException
|
||||
from app.modules.customers.models.customer import Customer
|
||||
|
||||
Reference in New Issue
Block a user