Fix tests
This commit is contained in:
parent
06d08fcbe9
commit
4a95f3b020
|
|
@ -50,7 +50,7 @@ class HepClient:
|
|||
raise HepClientNoTokenException
|
||||
|
||||
if not token_dict:
|
||||
token_dict = token_dict('', request)
|
||||
token_dict = fetch_token('', request)
|
||||
if not token_dict:
|
||||
raise HepClientNoTokenException
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ def handle_user_and_verify_products(user_data, token):
|
|||
|
||||
def check_and_create_licenses(hep_client, user, token):
|
||||
try:
|
||||
product = hep_client.active_myskillbox_product_for_customer(token=token)
|
||||
product = hep_client.active_myskillbox_product_for_customer(token_dict=token)
|
||||
except HepClientException:
|
||||
return None, UNKNOWN_ERROR
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ def authorize(request):
|
|||
hep_client = HepClient()
|
||||
try:
|
||||
token = oauth.hep.authorize_access_token(request)
|
||||
user_data = hep_client.user_details(token=token)
|
||||
user_data = hep_client.user_details(token_dict=token)
|
||||
|
||||
user, status_msg = handle_user_and_verify_products(user_data, token)
|
||||
user.sync_with_hep_data(user_data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue