예제 #1
0
 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)
예제 #2
0
 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")