mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Better debugging
This commit is contained in:
parent
a706f34b92
commit
8b86fb7fb4
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ class TestResponse:
|
|||
def status(self):
|
||||
return self.httpx_response.status_code
|
||||
|
||||
def __repr__(self):
|
||||
return "<TestResponse {} [{}]>".format(self.httpx_response.url, self.status)
|
||||
|
||||
# Supports both for test-writing convenience
|
||||
@property
|
||||
def status_code(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue