-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature][Test]Add E2E Test Programing process #4036
Conversation
e2e_test/tools/task.py
Outdated
}) | ||
assertRespOk(add_parent_dir_resp, "创建主测试路径") | ||
get_all_tasks_resp = session.post(url("api/catalogue/getCatalogueTreeData"), json={ | ||
"sortValue": "", | ||
"sortType": "" | ||
}) | ||
assertRespOk(get_all_tasks_resp, "获取作业详情") | ||
data_list: list[dict] = get_all_tasks_resp.json()['data'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use English.
e2e_test/tools/task.py
Outdated
}) | ||
assertRespOk(add_parent_dir_resp, "创建作业") | ||
get_all_tasks_resp = session.post(url("api/catalogue/getCatalogueTreeData"), json={ | ||
"sortValue": "", | ||
"sortType": "" | ||
}) | ||
assertRespOk(get_all_tasks_resp, "获取作业详情") | ||
data_list: list[dict] = get_all_tasks_resp.json()['data'] | ||
return getTask(data_list, name) | ||
|
||
|
||
def runTask(session: requests.Session, taskId: int): | ||
run_task_resp = session.get(url(f"api/task/submitTask?id={taskId}")) | ||
assertRespOk(run_task_resp, "运行Task") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use English.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose of the pull request
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows: