def setUp(self):
     self.app = Flask(__name__)
     self.app.register_blueprint(books, url_prefix='/books')
     self.tester = self.app.test_client(self)
     dao = DAO(t['username'], t['password'], t['host'], t['port'], t['db_name'])
     dao.drop_collection('books')
     self.dao = get_dao('test')
예제 #2
0
 def setUp(self):
     dao = DAO(t['username'], t['password'], t['host'], t['port'], t['db_name'])
     dao.drop_collection('books')