@bangdao-ai/zentao-mcp 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/zentao_nexus.py +3 -3
package/package.json
CHANGED
package/src/core/zentao_nexus.py
CHANGED
|
@@ -792,7 +792,7 @@ class ZenTaoNativeClient:
|
|
|
792
792
|
优先使用 allneedlist/uploadbyapi(token 认证兼容),
|
|
793
793
|
回退到 file/upload(需要 web session 权限,部分环境 401)。
|
|
794
794
|
"""
|
|
795
|
-
file_path = _safe_path(file_path
|
|
795
|
+
file_path = _safe_path(file_path)
|
|
796
796
|
if not os.path.exists(file_path):
|
|
797
797
|
return {"status": 0, "message": "fail",
|
|
798
798
|
"info": f"文件不存在: {file_path}", "data": {}}
|
|
@@ -1461,7 +1461,7 @@ class ZenTaoNexus:
|
|
|
1461
1461
|
return fieldnames, rows, case_type
|
|
1462
1462
|
|
|
1463
1463
|
def create_case_from_csv(self, csv_file_path, case_type=None) -> list:
|
|
1464
|
-
csv_file_path = _safe_path(csv_file_path
|
|
1464
|
+
csv_file_path = _safe_path(csv_file_path)
|
|
1465
1465
|
if not os.path.exists(csv_file_path):
|
|
1466
1466
|
return [{"status": 0, "message": f"CSV文件不存在: {csv_file_path}"}]
|
|
1467
1467
|
|
|
@@ -1581,7 +1581,7 @@ class ZenTaoNexus:
|
|
|
1581
1581
|
return results
|
|
1582
1582
|
|
|
1583
1583
|
def submit_csv_cases_to_zentao(self, csv_file_path, case_type=None) -> Dict:
|
|
1584
|
-
csv_file_path = _safe_path(csv_file_path
|
|
1584
|
+
csv_file_path = _safe_path(csv_file_path)
|
|
1585
1585
|
if not os.path.exists(csv_file_path):
|
|
1586
1586
|
return {"status": "error", "message": f"CSV文件不存在: {csv_file_path}",
|
|
1587
1587
|
"total_cases": 0, "success_count": 0, "failed_count": 0, "success_rate": 0.0}
|