Ejemplo n.º 1
0
 def setUp(self):
     self.db_fd,webapp.app.config['DATABASE']=tempfile.mkstemp()
     webapp.app.config['TESTING']=True
     self.app=webapp.app.test_client()
     webapp.init_db()
Ejemplo n.º 2
0
from webapp import init_db

init_db()
Ejemplo n.º 3
0
from webapp import app
from webapp import init_db

if __name__ == "__main__":
    init_db()
    app.run(debug=True)