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>
This commit is contained in:
parent
e67ab8bfb4
commit
dc83e75a34
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue