def setUp(self): app = create_app() app.testing = True app.app_context().push() self.app = app.test_client() Topics.query.delete()
from apps.factory import create_app app = create_app() if __name__ == '__main__': app.run(debug=True)
def setUp(self): app = create_app() app.testing = True self.app = app.test_client()