Files
sanguo_vnpy/archive/2026-04-29-cleanup/test/backtest/debug_create_task.py
T
2026-04-29 20:15:25 +08:00

21 lines
433 B
Python

import requests
import json
BASE_URL = "http://localhost:7891/api"
print("Testing create task...")
r = requests.post(
f"{BASE_URL}/create-task",
json={
'title': '端到端测试:验证三国量化数据获取与分析流程',
'org': '户部',
'official': '赵云',
'priority': 'high',
'targetDept': '户部'
}
)
print(f"Status: {r.status_code}")
print(f"Response: {r.text}")