Commit 609a2547 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added a print for API errors on search endpoint.

parent 3c227a2b
Pipeline #52986 failed with stages
in 17 minutes and 51 seconds
...@@ -661,7 +661,10 @@ class TestRepo(): ...@@ -661,7 +661,10 @@ class TestRepo():
search.Entry.from_calc_with_metadata(calc_with_metadata).save(refresh=True) search.Entry.from_calc_with_metadata(calc_with_metadata).save(refresh=True)
def assert_search(self, rv: Any, number_of_calcs: int) -> dict: def assert_search(self, rv: Any, number_of_calcs: int) -> dict:
if rv.status_code != 200:
print(rv.data)
assert rv.status_code == 200 assert rv.status_code == 200
data = json.loads(rv.data) data = json.loads(rv.data)
results = data.get('results', None) results = data.get('results', None)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment