We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b9018d + bb60aa9 commit 5d014abCopy full SHA for 5d014ab
oauth2cli/oauth2.py
@@ -173,7 +173,7 @@ def _obtain_token( # The verb "obtain" is influenced by OAUTH2 RFC 6749
173
headers=None, # a dict to be sent as request headers
174
post=None, # A callable to replace requests.post(), for testing.
175
# Such as: lambda url, **kwargs:
176
- # Mock(status_code=200, json=Mock(return_value={}))
+ # Mock(status_code=200, text='{}')
177
**kwargs # Relay all extra parameters to underlying requests
178
): # Returns the json object came from the OAUTH2 response
179
_data = {'client_id': self.client_id, 'grant_type': grant_type}
0 commit comments