Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huxaiphaer committed Sep 5, 2018
1 parent fda0e53 commit edc75a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions authors/apps/authentication/tests/test_login_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ def setUp(self):
self.user_data,
format="json")


def test_api_can_login_a_user(self):
"""Test the api can login a user."""
self.response = self.client.post(
"/api/users/login/",
self.login_data,
{"user": {
"email": 'kake@gmail.com',
"password": "12345fakemail",
}
},
format="json")
self.assertEqual(self.response.status_code, status.HTTP_200_OK)

Expand Down

0 comments on commit edc75a4

Please sign in to comment.