mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
Update: 发票ocr助手单测数据路径改为从const获取
This commit is contained in:
parent
ac6ec8e152
commit
d09b6f62a8
1 changed files with 1 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue