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

Function resume

tests/ce/server/test_update_weight.py:28–39  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

26
27
28def resume():
29 """
30 发送 resume 请求
31 1. 确认返回 200
32 2. 确认 status 为 success
33 """
34 resp = requests.post(f"{BASE_URL}/v1/resume")
35 print("resume:", resp.status_code, resp.text)
36 assert resp.status_code == 200
37 data = resp.json()
38 assert data["status"] == "success"
39 return resp
40
41
42def is_paused(expected=None):

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