This commit is contained in:
Matt Tuchfarber
2019-03-20 10:55:17 -04:00
parent 510f877408
commit c2e1cef508

View File

@@ -951,7 +951,7 @@ class UsernameReplacementViewTests(APITestCase):
Helper function for creating headers for the JWT authentication.
"""
token = create_jwt_for_user(user)
headers = {'HTTP_AUTHORIZATION': 'JWT {}'.format(token)}
headers = {'HTTP_AUTHORIZATION': u'JWT {}'.format(token)}
return headers
def call_api(self, user, data):