Better debugging

prototype-json-context-docs
Simon Willison 2023-05-08 17:50:12 -07:00
rodzic a706f34b92
commit 8b86fb7fb4
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -16,6 +16,9 @@ class TestResponse:
def status(self): def status(self):
return self.httpx_response.status_code return self.httpx_response.status_code
def __repr__(self):
return "<TestResponse {} [{}]>".format(self.httpx_response.url, self.status)
# Supports both for test-writing convenience # Supports both for test-writing convenience
@property @property
def status_code(self): def status_code(self):