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()
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()