Exemple #1
0
def fs(name):
    return aiomongo.GridFS(_db, name)
Exemple #2
0
def test_fs(event_loop, test_db):
    event_loop.run_until_complete(test_db.drop_collection('fs.files'))
    event_loop.run_until_complete(test_db.drop_collection('fs.chunks'))
    return aiomongo.GridFS(test_db)