|
|
|
@ -4,11 +4,11 @@ |
|
|
|
""" |
|
|
|
import asyncio |
|
|
|
import requests |
|
|
|
from app.core.app_factory import create_development_app |
|
|
|
from app.core.adb_exceptions import ( |
|
|
|
from app.core.app.factory import create_development_app |
|
|
|
from app.core.exceptions import ( |
|
|
|
AdbConnectionError, AdbProtocolError, AdbDeviceNotFoundError |
|
|
|
) |
|
|
|
from app.core.adb_exceptions import ( |
|
|
|
from app.core.exceptions import ( |
|
|
|
BusinessError, ValidationError, ResourceNotFoundError, PermissionError |
|
|
|
) |
|
|
|
|
|
|
|
@ -70,7 +70,7 @@ def test_error_response_format(): |
|
|
|
"""测试错误响应格式""" |
|
|
|
print("\n=== 测试错误响应格式 ===") |
|
|
|
|
|
|
|
from app.core.exception_handlers import ErrorResponse |
|
|
|
from app.core.handlers.exception_handlers import ErrorResponse |
|
|
|
|
|
|
|
# 创建标准错误响应 |
|
|
|
error_response = ErrorResponse( |
|
|
|
|