Beispiel #1
0
 def setUp(self):
     #overwrite the db name, dont interfere with stage db data
     self.postgresql = testing.postgresql.Postgresql()
     tippicserver.app.config['SQLALCHEMY_DATABASE_URI'] = self.postgresql.url()
     tippicserver.app.testing = True
     self.app = tippicserver.app.test_client()
     db.drop_all()
     db.create_all()
 def setUp(self):
     #overwrite the db name, dont interfere with stage db data
     self.postgresql = testing.postgresql.Postgresql()
     tippicserver.app.config[
         'SQLALCHEMY_DATABASE_URI'] = self.postgresql.url()
     tippicserver.app.testing = True
     #tippicserver.app.redis = redis.StrictRedis(host='0.0.0.0', port=6379, db=0) # doesnt play well with redis-lock
     self.app = tippicserver.app.test_client()
     db.drop_all()
     db.create_all()