test: fix _ext import (only exists in ab_ai_mail, not receipt_parser)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Carlos Garcia
2026-05-16 18:31:30 -04:00
parent 92ba6bd069
commit 1c5f6e7ca3

View File

@@ -399,15 +399,10 @@ async def test_act_no_employee_returns_empty_and_escalates():
# parse_upload — receipt_parser.py
# ---------------------------------------------------------------------------
from agent_service.tools.receipt_parser import parse_upload, _ext
from agent_service.tools.receipt_parser import parse_upload
class TestParseUpload:
def test_ext_helper(self):
assert _ext('receipt.JPG') == 'jpg'
assert _ext('file.tar.gz') == 'gz'
assert _ext('noextension') == ''
def test_text_file_parsed(self):
results = parse_upload('receipt.txt', b'Acme Store\nTotal: $10.00')
assert len(results) == 1