From dc83e75a34ddb37988c76350370065f368aec783 Mon Sep 17 00:00:00 2001 From: kiyo9w Date: Fri, 25 Sep 2026 01:30:28 +0900 Subject: [PATCH] test: the live tag fixture carries a tax-included price A tag is only readable when its own arithmetic corroborates the price, so the fixture needs the 162.00 that belongs with its 150 (150 x 1.08 = 162.00). Without it the fixture asserted the old behaviour. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- recognization/code/test_live.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recognization/code/test_live.py b/recognization/code/test_live.py index e4cd911..cec10cf 100644 --- a/recognization/code/test_live.py +++ b/recognization/code/test_live.py @@ -204,6 +204,8 @@ class TagPassIntegrationTests(unittest.TestCase): return [ OcrLine("コーヒー", 0.8, [int(width * 0.05), int(height * 0.05), int(width * 0.4), int(height * 0.3)]), OcrLine("150", 0.9, [int(width * 0.05), int(height * 0.4), int(width * 0.35), int(height * 0.8)]), + # 150 x 1.08 = 162.00, so the tag's arithmetic corroborates the price. + OcrLine("162.00", 0.6, [int(width * 0.55), int(height * 0.5), int(width * 0.8), int(height * 0.75)]), ] session, engine, detector, matcher = make_session()