fix python tests

This commit is contained in:
Matt Tuchfarber
2019-03-13 23:04:41 -04:00
parent f224f38a21
commit cda681e2f1
4 changed files with 19 additions and 14 deletions

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': token}
headers = {'HTTP_AUTHORIZATION': 'JWT {}'.format(token)}
return headers
def call_api(self, user, data):