MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / pause

Function pause

tests/ce/server/test_update_weight.py:14–25  ·  view source on GitHub ↗

发送 pause 请求 1. 确认返回 200 2. 确认 status 为 success

()

Source from the content-addressed store, hash-verified

12# 基础接口调用函数
13# ---------------------------
14def 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
28def resume():

Callers 7

test_basicFunction · 0.70
test_reentrantFunction · 0.70
test_exception_scenarioFunction · 0.70
test_concurrentFunction · 0.70
test_reentrant1Function · 0.70
test_reentrant2Function · 0.70
test_exception_scenario1Function · 0.70

Calls 1

printFunction · 0.85

Tested by

no test coverage detected