From 38c977bc0ba7d039b3a9fe09e8755b3621279611 Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Tue, 5 May 2015 17:25:30 -0700 Subject: [PATCH] Fixed typo in tests_api.py --- flashcards/tests/test_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flashcards/tests/test_api.py b/flashcards/tests/test_api.py index 559f417..13659b0 100644 --- a/flashcards/tests/test_api.py +++ b/flashcards/tests/test_api.py @@ -64,11 +64,11 @@ class PasswordResetTest(APITestCase): capture = search('https://flashy.cards/app/reset_password/(\d+)/(.*)', mail.outbox[0].body) - data['uid'] = capture.group(1) - data['token'] = capture.group(2) + patch_data['uid'] = capture.group(1) + patch_data['token'] = capture.group(2) self.client.patch(url, patch_data, format='json') - user = User.objects.get(id=data['uid']) - assert user.check_password(data['new_password']) + user = User.objects.get(id=patch_data['uid']) + assert user.check_password(patch_data['new_password']) class RegistrationTest(APITestCase): -- 1.9.1