Fakultas Ilmu Komputer UI

Commit cc9095ba authored by Glenda Emanuella Sutanto's avatar 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
......@@ -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}10/")
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}10/",
f"{self.BASE_URL}-1/",
self.sample_payload_with_step,
format='json'
)
......
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