def teardown_db():
""" Drops the db and shuts down the mongodb instance. """
client = MongoClient(api.config.testing_mongo_addr,
api.config.testing_mongo_port)[api.config.testing_mongo_db_name]
client.connection.drop_database(api.config.testing_mongo_db_name)
client.connection.disconnect()
评论列表
文章目录