Commit 8f54c7956dbd63607ddf90e218d6a89246e2ba0c

Authored by Andrew Buss
Exists in master

Merge branch 'master' of git.ucsd.edu:110swag/flashy-backend

Showing 1 changed file Side-by-side Diff

flashcards/tests/test_api.py View file @ 8f54c79
... ... @@ -64,11 +64,11 @@
64 64  
65 65 capture = search('https://flashy.cards/app/reset_password/(\d+)/(.*)',
66 66 mail.outbox[0].body)
67   - data['uid'] = capture.group(0)
68   - data['token'] = capture.group(1)
  67 + patch_data['uid'] = capture.group(1)
  68 + patch_data['token'] = capture.group(2)
69 69 self.client.patch(url, patch_data, format='json')
70   - user = User.objects.get(id=data['uid'])
71   - assert user.check_password(data['new_password'])
  70 + user = User.objects.get(id=patch_data['uid'])
  71 + assert user.check_password(patch_data['new_password'])
72 72  
73 73  
74 74 class RegistrationTest(APITestCase):