fix(pl): fix FakePlan id for planId export field.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e9ffa5d042
commit
d68a0ef0bd
3 files changed
+3
-2
No files matched your search
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import re
|
||||
from typing import Any, Mapping, Optional, Sequence
|
||||
from typing import Any, Mapping, Sequence
|
||||
from urllib.parse import unquote, urlparse
|
||||
|
||||
ARCHIVE_ZIP_ATTACH_COL_MAX = 20
|
||||
|
||||
@@ -101,6 +101,7 @@ def test_append_stop_product_rows_delivery_external_outbound():
|
||||
|
||||
|
||||
class _FakePlan:
|
||||
id = "p1"
|
||||
plan_no = "PL001"
|
||||
plan_date = "2026-08-27"
|
||||
archive_status = "archived"
|
||||
@@ -115,6 +116,7 @@ class _FakePlan:
|
||||
|
||||
def test_plan_common_export_fields():
|
||||
fields = _plan_common_export_fields(_FakePlan(), None)
|
||||
assert fields["planId"] == "p1"
|
||||
assert fields["planNo"] == "PL001"
|
||||
assert fields["archiveStatus"] == "已归档"
|
||||
assert fields["followStatus"] == "已安排"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from app.services.pl_plan_archive_zip_export import (
|
||||
sanitize_zip_segment,
|
||||
short_hash,
|
||||
build_attachment_filename,
|
||||
first_row_no_by_plan_id,
|
||||
build_hyperlink_formula,
|
||||
|
||||
Reference in new issue
Block a user