Commit bf427c11 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added workarround for mocked requests in test_client.

parent 85a44e9f
Pipeline #72402 failed with stages
in 21 minutes and 6 seconds
......@@ -191,10 +191,14 @@ class ArchiveQuery(Sequence):
self._results.append(archive)
self._api_statistics.last_response_size = len(response.content)
self._api_statistics.nentries = self._total
self._api_statistics.last_response_nentries = len(results)
self._api_statistics.loaded_nentries = len(self._results)
try:
self._api_statistics.last_response_size = len(response.content)
self._api_statistics.nentries = self._total
self._api_statistics.last_response_nentries = len(results)
self._api_statistics.loaded_nentries = len(self._results)
except Exception:
# fails in test due to mocked requests library
pass
def __repr__(self):
if self._total == -1:
......
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