Skip to content

Commit

Permalink
✅Test : 사용자 로그인시 데이터 없는 경우 테스트 추가 #3
Browse files Browse the repository at this point in the history
- 로그인 api 에 data가 없는 경우 400 Bad Request (simplejwt)
  • Loading branch information
Chestnut90 committed Nov 15, 2023
1 parent 678224a commit c9a3616
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/users/tests/test_signin_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c9a3616

Please sign in to comment.