Update: 发票ocr助手单测数据路径改为从const获取

This commit is contained in:
Stitch-z 2023-12-29 00:07:01 +08:00
parent ac6ec8e152
commit d09b6f62a8

View file

@ -33,10 +33,7 @@ async def test_invoice_ocr(invoice_path: Path):
@pytest.mark.parametrize(
("invoice_path", "expected_result"),
[
(
Path("invoices/invoice-1.pdf"),
{"收款人": "小明", "城市": "深圳", "总费用/元": 412.00, "开票日期": "2023年02月03日"}
),
(Path("invoices/invoice-1.pdf"), {"收款人": "小明", "城市": "深圳", "总费用/元": 412.00, "开票日期": "2023年02月03日"}),
],
)
async def test_generate_table(invoice_path: Path, expected_result: dict):