Fakultas Ilmu Komputer UI

Verified Commit 617f34d5 authored by Giovan Isa Musthofa's avatar Giovan Isa Musthofa
Browse files

[RED] Fix broken test on RegisterFullView test case

parent 82909a21
Pipeline #38415 failed with stages
in 1 minute and 21 seconds
......@@ -141,8 +141,8 @@ class RegisterFullAPITestCase(APITestCase):
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
user = User.objects.get(email=data['email'])
self.assertEqual(user.first_name, response.data['first_name'])
self.assertEqual(user.profile.id_card_no, response.data['profile']['id_card_no'])
self.assertEqual(user.first_name, data['first_name'])
self.assertEqual(user.profile.id_card_no, data['profile']['id_card_no'])
class AccessTokenAPITestCase(APITestCase):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment