示例#1
0
 def setUp(self):
     self.app = create_app(TestConfig)
     self.app_context = self.app.app_context()
     self.app_context.push()
示例#2
0
from loki import create_app

if __name__ == '__main__':
    app = create_app()
    app.run(debug=True)
示例#3
0
 def create_app(self):
     return create_app(TestConfig)