发送 pause 请求 1. 确认返回 200 2. 确认 status 为 success
()
| 12 | # 基础接口调用函数 |
| 13 | # --------------------------- |
| 14 | def pause(): |
| 15 | """ |
| 16 | 发送 pause 请求 |
| 17 | 1. 确认返回 200 |
| 18 | 2. 确认 status 为 success |
| 19 | """ |
| 20 | resp = requests.post(f"{BASE_URL}/v1/pause") |
| 21 | print("pause:", resp.status_code, resp.text) |
| 22 | assert resp.status_code == 200 |
| 23 | data = resp.json() |
| 24 | assert data["status"] == "success" |
| 25 | return resp |
| 26 | |
| 27 | |
| 28 | def resume(): |
no test coverage detected