From c9a361699941878662c7963bba22914b58783314 Mon Sep 17 00:00:00 2001 From: chestnut90 Date: Wed, 15 Nov 2023 16:07:50 +0900 Subject: [PATCH] =?UTF-8?q?:white=5Fcheck=5Fmark:Test=20:=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=9E=90=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=EC=8B=9C=20?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=97=86=EB=8A=94=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?#3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 로그인 api 에 data가 없는 경우 400 Bad Request (simplejwt) --- src/users/tests/test_signin_view.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/users/tests/test_signin_view.py b/src/users/tests/test_signin_view.py index 9b9426a..eb4f6d7 100644 --- a/src/users/tests/test_signin_view.py +++ b/src/users/tests/test_signin_view.py @@ -54,3 +54,8 @@ def test_signin_invalid_password(self): ) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + + def test_signin_with_no_data(self): + response = self.client.post(reverse(self.viewname)) + + self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)