chore(AdminCost): 移除 COS4 数据结构迁移的一次性脚本与参考资料
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
import json
|
||||
import sqlite3
|
||||
|
||||
from api_harness import fixture_file, get, post, server # noqa: F401
|
||||
from api_harness import (drop_sessions, fixture_file, get, # noqa: F401
|
||||
post, server)
|
||||
|
||||
BILLS = [
|
||||
("010101001001", "镀锌钢管DN25", "1、螺纹连接", "m", 10, 100),
|
||||
@@ -25,6 +26,8 @@ def _q(db, sql, args=()):
|
||||
|
||||
|
||||
def _setup(server):
|
||||
# 决策 242:同名重导会被拒——先走真实删除清掉旧会话(等后台清完)再导
|
||||
drop_sessions(server, "分组工程G")
|
||||
pa = fixture_file(server, "grp.cos4", "分组工程G", BILLS)
|
||||
sid = post(server, "/api/audit",
|
||||
{"path": str(pa), "name": "分组工程G", "province": "广东省",
|
||||
|
||||
Reference in New Issue
Block a user