mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Add status attribute to Response mock
This commit is contained in:
parent
ceb764b67d
commit
b92ae6d001
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ class Response(object):
|
|||
self.text = x.get_data(as_text=True)
|
||||
self.headers = x.headers
|
||||
self.encoding = x.charset
|
||||
self.reason = str(x.status)
|
||||
|
||||
def raise_for_status(self):
|
||||
'''copied from requests itself'''
|
||||
|
|
|
|||
Loading…
Reference in a new issue