MCPcopy Index your code
hub / github.com/aptly-dev/aptly / check_task

Method check_task

system/api_lib.py:96–100  ·  view source on GitHub ↗
(self, task)

Source from the content-addressed store, hash-verified

94 return self.get("/api/tasks/" + str(_id))
95
96 def check_task(self, task):
97 self.check_equal(task.status_code, 200)
98 if task.json()['State'] != TASK_SUCCEEDED:
99 resp2 = self.get("/api/tasks/" + str(task.json()['ID']) + "/output")
100 raise Exception(f"task failed: {resp2.text}")
101
102 def check_task_fail(self, task, expected_output=None):
103 self.check_equal(task.status_code, 200)

Callers 15

checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80

Calls 2

getMethod · 0.95
check_equalMethod · 0.80

Tested by

no test coverage detected