mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Implement test utils function to flush mongo db
This commit is contained in:
parent
18d5a49097
commit
f6a55c78af
@ -38,4 +38,6 @@ def flush_rethink_db(connection, dbname):
|
||||
|
||||
@flush_db.register(MongoDBConnection)
|
||||
def flush_mongo_db(connection, dbname):
|
||||
raise NotImplementedError
|
||||
connection.conn[dbname].bigchain.delete_many({})
|
||||
connection.conn[dbname].backlog.delete_many({})
|
||||
connection.conn[dbname].votes.delete_many({})
|
||||
|
Loading…
x
Reference in New Issue
Block a user