TBC/tests/utils/__init__.py
d-robotics 633a797226 AutoFlow v2.0: 合并 Test (Robogo) + data-loop-automation (D-Cloud) 为统一平台
- 16 个业务模块,856 个测试用例,40 个 E2E 测试
- 单一 React 19 前端 + PlatformSwitcher 二合一切换
- Flask 后端支持 scenario/dcloud_module/dcloud_e2e/dcloud_all 四种任务类型
- E2E 测试面板:API 全链路(8条) + UI 点击(3条) + 分步测试(3个)
- SSE 实时日志流 + 飞书告警 + 定时调度
- 完整还原原 ToB 平台 TestPanel E2E 模块
2026-06-23 11:48:29 +08:00

45 lines
944 B
Python

"""
工具模块
提供测试相关的工具类和函数。
"""
from tests.utils.api_client import APIClient, ensure_auth_token
from tests.utils.smart_waiter import SmartWaiter, smart_wait
from tests.utils.business_assertions import BusinessAssertions
from tests.utils.metrics import (
MetricsCollector,
MetricsReporter,
TestResult,
TestSuiteMetrics,
TestStatus,
get_collector,
reset_collector,
)
from tests.utils.flaky_detector import (
FlakyTestRegistry,
TestExecution,
TestHistory,
get_registry,
reset_registry,
)
__all__ = [
"APIClient",
"ensure_auth_token",
"SmartWaiter",
"smart_wait",
"BusinessAssertions",
"MetricsCollector",
"MetricsReporter",
"TestResult",
"TestSuiteMetrics",
"TestStatus",
"get_collector",
"reset_collector",
"FlakyTestRegistry",
"TestExecution",
"TestHistory",
"get_registry",
"reset_registry",
]