예제 #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)