Add __str__ method to ExpectedRequest
Better for reading test logs.
This commit is contained in:
parent
4060fd5e90
commit
452c6f5310
@ -117,6 +117,11 @@ class ExpectedRequest:
|
|||||||
else:
|
else:
|
||||||
return NotImplemented
|
return NotImplemented
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return '<ExpectedRequest {} "{}">'.format(self.verb, self.path)
|
||||||
|
|
||||||
|
__repr__ = __str__
|
||||||
|
|
||||||
|
|
||||||
class HTTPBin(testprocess.Process):
|
class HTTPBin(testprocess.Process):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user