def setUp(self):
        app = create_app()
        app.testing = True
        app.app_context().push()
        self.app = app.test_client()

        Topics.query.delete()
Exemple #2
0
from apps.factory import create_app

app = create_app()

if __name__ == '__main__':
   app.run(debug=True)
Exemple #3
0
 def setUp(self):
     app = create_app()
     app.testing = True
     self.app = app.test_client()