Skip to content
Snippets Groups Projects
Commit 1d14b8ab authored by Vegard Murvold Sporstøl's avatar Vegard Murvold Sporstøl
Browse files

work on tests

parent 2b38f73c
Branches UC-2
No related tags found
1 merge request!7Task3
Pipeline #113921 passed
......@@ -201,7 +201,7 @@ class CreateWorkoutForAthleteTestCase(TestCase):
self.user.set_password('user')
self.user.save()
# Authenticate athlete
# Authenticate user
response = self.client.post('/api/token/', {'username': 'user', 'password': 'user'})
content = json.loads(response.content)
self.client.defaults['HTTP_AUTHORIZATION'] = 'Bearer ' + content['access']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment