working outside of application context
snippet in c

working outside of application context

user130

# when app is initialized using app_factory

@classmethod
def setUpClass(self):
    self.app = create_app("testing")
    self.client = self.app.test_client()