Private
Public Access
1
0

fixing strava tests

This commit is contained in:
Sander Roosendaal
2019-01-16 17:33:04 +01:00
parent ba4d4ced8d
commit 081ef1b11a
12 changed files with 462424 additions and 395 deletions

View File

@@ -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: