Merge pull request #21418 from edx/awais786/BOM-105

BOM-105
This commit is contained in:
Awais Qureshi
2019-08-27 14:04:34 +05:00
committed by GitHub

View File

@@ -94,7 +94,7 @@ class CcxRestApiTest(CcxTestCase, APITestCase):
}
token_resp = self.client.post(reverse('oauth2:access_token'), data=token_data, format='multipart')
self.assertEqual(token_resp.status_code, status.HTTP_200_OK)
token_resp_json = json.loads(token_resp.content)
token_resp_json = json.loads(token_resp.content.decode('utf-8'))
return u'{token_type} {token}'.format(
token_type=token_resp_json['token_type'],
token=token_resp_json['access_token']