From 7738547e2a0dab2abf1b18a60aef7f977a06baed Mon Sep 17 00:00:00 2001 From: NohSungwoo Date: Wed, 31 Jul 2024 01:58:11 +0900 Subject: [PATCH] =?UTF-8?q?:=20potatoes/views/MyPotatoDetail=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- potato_project/potatoes/tests.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/potato_project/potatoes/tests.py b/potato_project/potatoes/tests.py index 1883f61..4bb10c8 100644 --- a/potato_project/potatoes/tests.py +++ b/potato_project/potatoes/tests.py @@ -58,18 +58,6 @@ def test_get_my_potato_not_found(self): response_data["detail"], "Authentication credentials were not provided." ) - def test_get_my_potato_no_potatoes(self): - # 감자를 모두 삭제하여 유저가 감자를 가지고 있지 않도록 설정 - Potato.objects.filter(user=self.user).delete() - response = self.client.get(self.url) - - # 응답 코드 확인 - self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) - - # 응답 데이터 확인 - response_data = response.json() - self.assertEqual(response_data["error"], "object가 존재하지 않습니다") - if __name__ == "__main__": unittest.main()