G41_TAPD_BUG_SYNC/test_full_flow.py

30 lines
772 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
完整流程测试脚本
测试从智能表格读取→下载附件→创建bug→上传附件→回写结果的完整流程
"""
import sys
from pathlib import Path
# 添加项目根目录到Python路径
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
from src.main import main
if __name__ == "__main__":
print("=" * 80)
print("完整流程测试")
print("=" * 80)
print("\n提示:这将运行一次完整的开单流程")
print("请确保:")
print("1. 智能表格中有待开单的记录")
print("2. 记录包含附件字段")
print("3. 环境变量已正确设置")
print("\n按回车继续或Ctrl+C取消...")
input()
sys.exit(main())