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
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Backend
Commits
cc9095ba
Commit
cc9095ba
authored
May 09, 2021
by
Glenda Emanuella Sutanto
Browse files
[REFACTOR] Changed diet questionnaire id in test to make it not found
parent
7a20bb2c
Pipeline
#75935
passed with stages
in 15 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
diet_questionnaire/tests.py
View file @
cc9095ba
...
...
@@ -93,7 +93,7 @@ class DietQuestionnaireTests(APITestCase):
def
test_get_single_diet_questionnaire_failed
(
self
):
self
.
client
.
credentials
(
HTTP_AUTHORIZATION
=
self
.
login_credentials
)
response
=
self
.
client
.
get
(
f
"
{
self
.
BASE_URL
}
1
0
/"
)
response
=
self
.
client
.
get
(
f
"
{
self
.
BASE_URL
}
-
1/"
)
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_404_NOT_FOUND
)
def
test_update_diet_questionnaire_with_new_step_succeed
(
self
):
...
...
@@ -135,7 +135,7 @@ class DietQuestionnaireTests(APITestCase):
def
test_update_diet_questionnaire_not_found_failed
(
self
):
self
.
client
.
credentials
(
HTTP_AUTHORIZATION
=
self
.
login_credentials
)
response
=
self
.
client
.
patch
(
f
"
{
self
.
BASE_URL
}
1
0
/"
,
f
"
{
self
.
BASE_URL
}
-
1/"
,
self
.
sample_payload_with_step
,
format
=
'json'
)
...
...
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