

def create_oauth_provider(self, app):

    def generator(request):
        return 'foobar'
    app.config['OAUTH2_PROVIDER_TOKEN_GENERATOR'] = generator
    return default_provider(self)

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py TestTokenGenerator.create_oauth_provider/VarMisuse@37/57 `app`->`self`