Skip to content
Snippets Groups Projects
Commit bf427c11 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added workarround for mocked requests in test_client.

parent 85a44e9f
No related branches found
No related tags found
2 merge requests!115V0.8.0 beta,!113V0.8.0
Pipeline #72402 failed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment