fixing strava tests
This commit is contained in:
@@ -103,6 +103,7 @@ def imports_open(user,oauth_data):
|
||||
oauth_data,
|
||||
)
|
||||
elif tokenexpirydate is None and expirydatename is not None and 'strava' in expirydatename:
|
||||
print 'noot'
|
||||
token = imports_token_refresh(
|
||||
user,
|
||||
tokenname,
|
||||
@@ -152,6 +153,8 @@ def imports_do_refresh_token(refreshtoken,oauth_data,access_token=''):
|
||||
data=post_data,
|
||||
headers=headers)
|
||||
|
||||
|
||||
|
||||
if response.status_code == 200 or response.status_code == 201:
|
||||
token_json = response.json()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user