def setUpClass(cls): print "MulchnTestCase" db.configure_engine("postgres://localhost/mulchn-test") db.Base.metadata.drop_all(bind=db.engine) db.Base.metadata.create_all(bind=db.engine)
def setUp(self): mulchn.app.config['TESTING'] = True mulchn.app.config['CSRF_ENABLED'] = False self.app = mulchn.app.test_client() db.configure_engine("postgres://localhost/mulchn-test")