Skip to content

Commit

Permalink
Merge pull request #2820 from jxltom/fixed-tests-in-django2.1
Browse files Browse the repository at this point in the history
Update get_user_id to get_user since it is removed after django 2.1
  • Loading branch information
patrys committed Sep 11, 2018
2 parents 33329a5 + ea28a7c commit 535d41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_login_form_not_valid(customer_user):
data = {'user': 'test@example.com', 'password': 'wrongpassword'}
form = LoginForm(data=data)
assert not form.is_valid()
assert form.get_user_id() is None
assert form.get_user() is None


def test_login_view_valid(client, customer_user):
Expand Down

0 comments on commit 535d41d

Please sign in to comment.