functional tests: show failed answers

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj 2021-04-13 14:28:14 +05:30
parent 1d746f7655
commit caf3669bd9

View File

@ -46,7 +46,7 @@ class QuickStartUser(SequentialTaskSet):
resp.failure("Status was not 200: " + resp.text)
else:
if resp.json().get("result") != "True":
resp.failure("Answer was not accepted")
resp.failure("Answer was not accepted: " + ocrAnswer)
def solve(self, uuid, media):
mediaFileName = "tests/test-%s.png" % uuid