Skip to content

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

Update tests

michale642a782c7b2
diff --git a/saleor/dashboard/staff/forms.py b/saleor/dashboard/staff/forms.py
index 261593ef69..8c9b06899f 100644
--- a/saleor/dashboard/staff/forms.py
+++ b/saleor/dashboard/staff/forms.py
@@ -6,5 +6,5 @@ from ...userprofile.models import User
class StaffForm(forms.ModelForm):
class Meta:
model = User
- fields = ['email', 'password', 'groups', 'is_superuser', 'is_staff',
+ fields = ['email', 'groups', 'is_superuser', 'is_staff',
'is_active']
diff --git a/tests/dashboard/test_permissions.py b/tests/dashboard/test_permissions.py
index a48b3b2b40..2b7425aa07 100644
--- a/tests/dashboard/test_permissions.py
+++ b/tests/dashboard/test_permissions.py
@@ -702,7 +702,7 @@ def test_user_group_form_not_valid(db):
def test_user_group_form_create_valid(
admin_client, staff_user, staff_group):
url = reverse('dashboard:staff-details', args=[staff_user.pk])
- data = {'groups': staff_group.pk}
+ data = {'email': '[email protected]', 'groups': staff_group.pk}
admin_client.post(url, data)
staff_user = User.objects.get(pk=staff_user.pk)
assert staff_user.groups.count() == 1