feat(server): 重构费用报销服务,优化报销单创建和审批流程逻辑
This commit is contained in:
@@ -187,6 +187,8 @@ def test_update_claim_item_reanalyzes_existing_attachment(monkeypatch, tmp_path)
|
||||
)
|
||||
assert uploaded_meta is not None
|
||||
assert uploaded_meta["analysis"]["severity"] == "pass"
|
||||
assert uploaded_meta["document_info"]["document_type"] == "office_invoice"
|
||||
assert uploaded_meta["requirement_check"]["matches"] is True
|
||||
|
||||
updated = service.update_claim_item(
|
||||
claim_id=claim.id,
|
||||
@@ -207,8 +209,9 @@ def test_update_claim_item_reanalyzes_existing_attachment(monkeypatch, tmp_path)
|
||||
current_user=current_user,
|
||||
)
|
||||
assert refreshed_meta is not None
|
||||
assert refreshed_meta["analysis"]["severity"] == "medium"
|
||||
assert any("用途字段" in point for point in refreshed_meta["analysis"]["points"])
|
||||
assert refreshed_meta["analysis"]["severity"] == "high"
|
||||
assert refreshed_meta["requirement_check"]["matches"] is False
|
||||
assert any("附件类型要求" in point for point in refreshed_meta["analysis"]["points"])
|
||||
|
||||
|
||||
def test_delete_claim_item_removes_row_and_attachment_files(monkeypatch, tmp_path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user