kopia lustrzana https://github.com/simonw/datasette
Better debugging
rodzic
a706f34b92
commit
8b86fb7fb4
|
@ -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):
|
||||||
|
|
Ładowanie…
Reference in New Issue