Skip to content

Commit

Permalink
[RED] Fix test for login feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesSetiawan committed Feb 22, 2024
1 parent 58e1696 commit 331cbf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authentication/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ def setUp(self):
self.user = AppUser.objects.create_user(email='[email protected]',username='testuser',password='test')

def testLoginSuccessful(self):
data = {'username': 'testuser', 'password': 'testpassword'}
response = self.client.post(LOGIN_LINK, data=data)
data = {'username': 'testuser', 'password': 'test'}
response = self.client.post(LOGIN_LINK, json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 200)

0 comments on commit 331cbf5

Please sign in to comment.