Improve fudai live flow diagnostics

This commit is contained in:
Your Name committed 2026-06-18 04:48:16 +08:00
1 parent daa4d1709d
commit 9ffbe47bdb
9 files changed
+163 -14

No files matched your search

+7 -1
View File
@@ -13,8 +13,9 @@ def test_decide_button_status_attended_for_notice_text() -> None:
def test_apply_button_ocr_result_records_room_pos_when_enabled() -> None:
log_calls = []
analyser = SimpleNamespace(room_pos=12)
analyser._log_kv = lambda *args, **kwargs: None
analyser._log_kv = lambda *args, **kwargs: log_calls.append((args, kwargs))
apply_button_ocr_result(
analyser,
@@ -31,3 +32,8 @@ def test_apply_button_ocr_result_records_room_pos_when_enabled() -> None:
)
assert analyser._fudai_button_room_pos == 12
assert log_calls
args, kwargs = log_calls[-1]
assert args[0] == "按钮识别"
assert kwargs["decision"] == "button_ocr_state_only"
assert kwargs["attend_click_sent"] is False