def create_app(self): app = Application.create({ 'database': 'sqlite://', 'api_token': 'test-token', }) app.config['TESTING'] = True return app