Fix tests

This commit is contained in:
Christian Cueni 2021-06-17 14:10:12 +02:00
parent 06d08fcbe9
commit 4a95f3b020
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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