diff --git a/testsuite/httpx/__init__.py b/testsuite/httpx/__init__.py index 44e6353b..8d7e2795 100644 --- a/testsuite/httpx/__init__.py +++ b/testsuite/httpx/__init__.py @@ -58,6 +58,11 @@ def __getattr__(self, item): return getattr(self.response, item) return None + def __str__(self): + if self.error is None: + return f"Result[status_code={self.response.status_code}]" + return f"Result[error={self.error}]" + class KuadrantClient(Client): """Httpx client which retries unstable requests"""