Skip to content

Commit

Permalink
broke tests reset
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroussard committed Jan 2, 2022
1 parent 3cc4c15 commit 74e2f9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion requests_oauthlib/oauth1_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, message, response):
super(TokenRequestDenied, self).__init__(message)
self.response = response

@property
def status_code(self):
"""For backwards-compatibility purposes"""
return self.response.status_code
Expand Down Expand Up @@ -170,6 +171,7 @@ def __init__(
)
self.auth = self._client

@property
def token(self):
oauth_token = self._client.client.resource_owner_key
oauth_token_secret = self._client.client.resource_owner_secret
Expand All @@ -189,6 +191,7 @@ def token(self):
def token(self, value):
self._populate_attributes(value)

@property
def authorized(self):
"""Boolean that indicates whether this session has an OAuth token
or not. If `self.authorized` is True, you can reasonably expect
Expand Down Expand Up @@ -255,7 +258,7 @@ def authorization_url(self, url, request_token=None, **kwargs):
return add_params_to_uri(url, kwargs.items())

def fetch_request_token(self, url, realm=None, **request_kwargs):
r"""Fetch a request token.
"""Fetch a request token.
This is the first step in the OAuth 1 workflow. A request token is
obtained by making a signed post request to url. The token is then
Expand Down

0 comments on commit 74e2f9e

Please sign in to comment.