예제 #1
0
def get_files_list(*args, **kwargs):
    return MockListFolderResult(entries=[
        MockFileMetadata('foo', '/foo'),
        MockFileMetadata('boo', '/boo')
    ],
                                has_more=False)
예제 #2
0
def download_file(*args, **kwargs):
    return [MockFileMetadata('foo', '/foo'), MockHttpResponse('boo')]
예제 #3
0
def search_files(*args, **kwargs):
    return MockSearchResult([
        MockSearchMatch(MockFileMetadata('foo', '/foo')),
        MockSearchMatch(MockFileMetadata('fooboo', '/fooboo'))
    ])
예제 #4
0
def create_file(*args, **kwargs):
    return MockFileMetadata('foo', '/foo')