def setUp(self): self.app = create_app(TestConfig) self.app_context = self.app.app_context() self.app_context.push()
from loki import create_app if __name__ == '__main__': app = create_app() app.run(debug=True)
def create_app(self): return create_app(TestConfig)