parent
352a2b7280
commit
e9b577104d
2 changed files with 50 additions and 1 deletions
|
@ -33,7 +33,7 @@ class FakeStorage(BaseStorageV2):
|
|||
yield buf
|
||||
|
||||
def stream_read_file(self, path):
|
||||
return StringIO(_FAKE_STORAGE_MAP[path])
|
||||
return StringIO.StringIO(self.get_content(path))
|
||||
|
||||
def stream_write(self, path, fp, content_type=None, content_encoding=None):
|
||||
out_fp = _FAKE_STORAGE_MAP[path]
|
||||
|
|
Reference in a new issue