api: repo copy handle package not found

and add tests for error proper handling.
This commit is contained in:
André Roth
2024-07-18 14:56:11 +02:00
parent 49184c9163
commit fe25414b45
3 changed files with 11 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ class APITest(BaseTest):
raise Exception("task expected to fail")
if expected_output:
resp = self.get("/api/tasks/" + str(task.json()['ID']) + "/output")
self.check_equal(resp.text, expected_output)
self.check_equal(resp.json(), expected_output)
def put(self, uri, *args, **kwargs):
if "json" in kwargs: