fix: 修复代码格式问题,提升可读性

This commit is contained in:
Your Name committed 2026-01-16 02:31:34 +08:00
1 parent 71d2f218cf
commit 362b7c841c
6 files changed
+126 -35

No files matched your search

+8 -1
View File
@@ -306,7 +306,14 @@ def test_error_scenarios():
analyser.room_pos = 2 # 在目标位置
# 修改映射表,使当前位置的标题与预约记录不一致
analyser._room_pos_to_title_map[2] = ("错误的直播间", "错误的直播间")
analyser._room_pos_to_title_map[2] = {
"title": "错误的直播间",
"title_raw": "错误的直播间",
"has_fudai": False,
"fudai_content": "",
"fudai_detail": None,
"timestamp": time.time(),
}
# 设置OCR识别结果为错误的标题
analyser.operation.mock_ocr_result = "错误的直播间"