Skip to content

Commit

Permalink
fix get_response for bytes response
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienChampagnol committed Oct 29, 2024
1 parent 0371651 commit 0586102
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ def print_log(self):
print(output)

def get_response(self):
return self.ws.recv()
response = json.loads(self.ws.recv())
return response
response = self.ws.recv()
if isinstance(response, bytes):
return response
else:
return eval(response)

def compare_image(self, nb_messages, filename):
for message in range(nb_messages):
Expand Down

0 comments on commit 0586102

Please sign in to comment.