#!/usr/bin/env python from browsergrid.app import create_app app = create_app() app.run()
#!/usr/bin/env python from browsergrid.app import init_db, create_app a = create_app() init_db(a) print 'Done!'
def setUp(self): self.app = create_app(TestSettings) with self.app.app_context(): db.create_all() self.client = self.app.test_client() self.app.app_context().push()