Пример #1
0
 def setUp(self):
     app.config.update(TESTING=True,
                       WTF_CSRF_ENABLED=False,
                       SQLALCHEMY_DATABASE_URI='sqlite:///:memory:')
     db.create_all()
     self.client = app.test_client()
     self.runner = app.test_cli_runner()
Пример #2
0
 def setUpClass(cls):
     app.config.update(TESTING=True,
                       WTF_CSRF_ENABLED=False,
                       SQLALCHEMY_DATABASE_URI='sqlite:///:memory:')
     db.create_all()
     print('setUpClass')
     cls.client = app.test_client()
     cls.runner = app.test_cli_runner()