21 lines
433 B
Python
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}")
|
|
|