dongchang/tests/run_tests.py

24 lines
663 B
Python

import asyncio
from .test_camera import test_rtsp_camera
from .test_person_detector import test_person_detector
from .test_distance_estimator import test_distance_estimator
from .test_api_server import test_run
async def run_all_tests():
print("开始运行所有测试...")
# print("\n1. 测试摄像头模块")
# test_rtsp_camera()
# print("\n2. 测试人物检测模块")
# test_person_detector()
# print("\n3. 测试距离估算模块")
# test_distance_estimator()
print("\n4. 测试API模块")
test_run()
print("\n所有测试完成!")
if __name__ == "__main__":
asyncio.run(run_all_tests())