在前后端开发联调前 的提交20260223
This commit is contained in:
@@ -36,7 +36,7 @@ _NOW = datetime(2024, 6, 1, 12, 0, 0, tzinfo=timezone.utc)
|
||||
# 构造测试用的 TaskConfig payload
|
||||
_VALID_CONFIG = {
|
||||
"tasks": ["ODS_MEMBER"],
|
||||
"pipeline": "api_ods",
|
||||
"flow": "api_ods",
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ class TestRunTask:
|
||||
|
||||
def test_run_invalid_config_returns_422(self):
|
||||
"""缺少必填字段 tasks 时返回 422"""
|
||||
resp = client.post("/api/execution/run", json={"pipeline": "api_ods"})
|
||||
resp = client.post("/api/execution/run", json={"flow": "api_ods"})
|
||||
assert resp.status_code == 422
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user