修复福袋详情OCR v2与调试日志
This commit is contained in:
1 parent
2c6f024a24
commit
1d37d57c90
119 files changed
+5582
-767
No files matched your search
@@ -131,7 +131,8 @@ class TestReadCountdownSplit:
|
||||
read_countdown_split(a, (100, 200, 400, 250), save_debug_images=False)
|
||||
mock_save.assert_not_called()
|
||||
|
||||
def test_save_debug_images_enabled_calls_save(self):
|
||||
def test_save_debug_images_enabled_does_not_save_per_field(self):
|
||||
"""详情页 debug 统一由主流程保存一张综合标注图,不再保存倒计时分图。"""
|
||||
a = _mk_analyser()
|
||||
a.operation.analyse_pic_digits = MagicMock(side_effect=["23", "45"])
|
||||
|
||||
@@ -139,5 +140,4 @@ class TestReadCountdownSplit:
|
||||
"douyin.fudai.core.fudai_debug_utils._save_full_screenshot_with_ocr_region"
|
||||
) as mock_save:
|
||||
read_countdown_split(a, (100, 200, 400, 250), save_debug_images=True)
|
||||
# 调用 2 次(分钟 + 秒)
|
||||
assert mock_save.call_count == 2
|
||||
mock_save.assert_not_called()
|
||||
Reference in new issue
Block a user