Merge "Fix issue when displaying image_member"
This commit is contained in:
commit
51f38f5cde
@ -150,3 +150,11 @@ class FakeResponse(requests.Response):
|
|||||||
self._content = json.dumps(data)
|
self._content = json.dumps(data)
|
||||||
if not isinstance(self._content, six.binary_type):
|
if not isinstance(self._content, six.binary_type):
|
||||||
self._content = self._content.encode()
|
self._content = self._content.encode()
|
||||||
|
|
||||||
|
|
||||||
|
class FakeModel(dict):
|
||||||
|
def __getattr__(self, key):
|
||||||
|
try:
|
||||||
|
return self[key]
|
||||||
|
except KeyError:
|
||||||
|
raise AttributeError(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user