Skip to content

Commit 5b21583

Browse files
committed
Add last_request method to httpretty wrapper
1 parent 8e9414b commit 5b21583

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shipchain_common/test_utils/httpretty_asserter.py

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def register_uri(self, # noqa
4747
def latest_requests(self):
4848
return self.mock.calls
4949

50+
def last_request(self):
51+
return self.mock.calls[-1] if self.mock.calls else None
52+
5053
def reset(self):
5154
self.mock._calls.reset() # pylint:disable=protected-access
5255

0 commit comments

Comments
 (0)