fix(conftest,config_loader): 修复 get_caps 的 Capabilities 加载逻辑

- 新增 pytest_addoption 增加 "--caps_name" 获取配置文件中的设备/平台名称
- 修复 get_caps 的 Capabilities 加载逻辑
- 优化 其他优化 enums.py
- 删除 移除部分文档,代码,第三方包(loguru)
This commit is contained in:
2026-02-28 16:08:14 +08:00
parent 332deb3666
commit 6ad6b7ff84
20 changed files with 175 additions and 328 deletions

View File

@@ -11,10 +11,10 @@
"""
import yaml
from pathlib import Path
from typing import Any, List
from typing import Any
def load_yaml(file_path: Path | str) -> dict[str, Any] | List[Any]:
def load_yaml(file_path: Path | str) -> dict[str, Any] | list[Any]:
"""
加载 YAML 文件
:param file_path: 文件路径