fix: 行动方案库统计卡片—补全API+overdue计算
This commit is contained in:
@@ -118,7 +118,8 @@ class TestDataImport:
|
||||
)
|
||||
assert resp.status_code == 200
|
||||
data = resp.json()
|
||||
assert data["message"] == "导入成功 2 条数据"
|
||||
assert "导入成功" in data["message"]
|
||||
assert "2 条" in data["message"]
|
||||
assert "batch" in data
|
||||
|
||||
def test_import_excel_missing_columns(self, client: TestClient, db: Session):
|
||||
@@ -158,7 +159,8 @@ class TestDataImport:
|
||||
files={"file": ("test.xlsx", buffer, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")},
|
||||
)
|
||||
assert resp.status_code == 200
|
||||
assert resp.json()["message"] == "导入成功 0 条数据"
|
||||
assert "导入成功" in resp.json()["message"]
|
||||
assert "0 条" in resp.json()["message"]
|
||||
|
||||
def test_import_template_download(self, client: TestClient, db: Session):
|
||||
"""下载导入模板"""
|
||||
|
||||
Reference in New Issue
Block a user