

def setup_app(self, app):
    oauth = self.create_oauth_provider(app)
    create_server(app, oauth)
    client = create_client(app)
    client.http_request = MagicMock(side_effect=self.patch_request(app))
    self.oauth_client = client
    return app

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py OAuthSuite.setup_app/original