示例#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()
示例#2
0
from webapp import init_db

init_db()
示例#3
0
from webapp import app
from webapp import init_db

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