fix
This commit is contained in:
@@ -137,6 +137,7 @@ def mocked_session(*args, **kwargs):
|
||||
'Location':'MockLocation',
|
||||
}
|
||||
self.ok = True
|
||||
self.text = 'Mocked response text'
|
||||
|
||||
def json(self):
|
||||
return self.json_data
|
||||
@@ -991,6 +992,7 @@ def mocked_requests(*args, **kwargs):
|
||||
self.headers = {
|
||||
'Location':'MockLocation',
|
||||
}
|
||||
self.text = 'Mocked response text'
|
||||
|
||||
def json(self):
|
||||
return self.json_data
|
||||
@@ -1574,6 +1576,7 @@ class MockResponse: # pragma: no cover
|
||||
self.headers = {
|
||||
'Location':'MockLocation',
|
||||
}
|
||||
self.text = 'Mocked response text'
|
||||
|
||||
def json(self):
|
||||
return self.json_data
|
||||
|
||||
Reference in New Issue
Block a user