Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update get_user_id to get_user since it is removed after django 2.1

Liu Junxiaoea28a7c4a910
diff --git a/tests/test_registration.py b/tests/test_registration.py
index 917e93437e..78c17916e4 100644
--- a/tests/test_registration.py
+++ b/tests/test_registration.py
@@ -29,7 +29,7 @@ def test_login_form_not_valid(customer_user):
data = {'user': '[email protected]', '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):