Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
Diskominfo-D'Blood
Mantan Aab-D Blood
Commits
617f34d5
Verified
Commit
617f34d5
authored
Apr 06, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/main/test_views.py
View file @
617f34d5
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment