* Better failure logging in failed requests
self.passing property is a much more comprehensive way of checking for passing tests Also this uses the colors to dump to stdout
This commit is contained in:
parent
b810a5abba
commit
45540ddd25
@ -49,8 +49,8 @@ class Request:
|
|||||||
|
|
||||||
|
|
||||||
def show_response(self):
|
def show_response(self):
|
||||||
if self.response is None:
|
if not self.passing:
|
||||||
print('Response := None')
|
print(RED + 'Fail' + NC + ' ' + self.url)
|
||||||
return
|
return
|
||||||
|
|
||||||
real_code = self.response.status_code
|
real_code = self.response.status_code
|
||||||
|
Loading…
Reference in New Issue
Block a user