Commit 38c977bc0ba7d039b3a9fe09e8755b3621279611
1 parent
f5539effbb
Exists in
master
Fixed typo in tests_api.py
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
flashcards/tests/test_api.py
View file @
38c977b
... | ... | @@ -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(1) | |
68 | - data['token'] = capture.group(2) | |
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): |