def setup_method(self, method): assert app.config["MODE"] == "testing" # reset database self.db = database.connect(app.config) self.db.flushall()
def setUp(self): assert app.config["MODE"] == "testing" # reset database self.db = database.connect(app.config) self.db.flushall() self.app = app.test_client()