def setUp(self): app.config["TESTING"] = True db = DB("hfa_events_test") db.init_db() self.db = db app.config.update({"db": db}) app.config["db"].session.query(Location).delete() app.config["db"].session.query(Attendee).delete() app.config["db"].session.query(Event).delete()
from app.server import app from app.database import DB if __name__ == "__main__": db = DB("hfa_events_dev") db.init_db() app.config.update({"db": db}) app.run(host="0.0.0.0")