Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update test names with StaffForm
michal007f5a82d036
diff --git a/templates/dashboard/staff/modal/confirm_delete.html b/templates/dashboard/staff/modal/confirm_delete.htmlindex 047944d17c..4b2978dc4b 100644--- a/templates/dashboard/staff/modal/confirm_delete.html+++ b/templates/dashboard/staff/modal/confirm_delete.html@@ -13,5 +13,6 @@{% block content %}{% blocktrans trimmed context "Modal delete group text" %}<p>Are you sure you want to delete staff member {{ staff }}?</p>+<p>Deleting staff member also removes him from customer list</p>{% endblocktrans %}{% endblock content %}diff --git a/tests/dashboard/test_permissions.py b/tests/dashboard/test_permissions.pyindex 2b7425aa07..eb4fb2add2 100644--- a/tests/dashboard/test_permissions.py+++ b/tests/dashboard/test_permissions.py@@ -693,13 +693,13 @@ def test_group_detail_form_valid(assert staff_group.permissions.get(pk=permission_view_product.pk)-def test_user_group_form_not_valid(db):+def test_staff_form_not_valid(db):data = {'groups': 1}form = StaffForm(data=data)assert not form.is_valid()-def test_user_group_form_create_valid(+def test_staff_form_create_valid(admin_client, staff_user, staff_group):url = reverse('dashboard:staff-details', args=[staff_user.pk])data = {'email': '[email protected]', 'groups': staff_group.pk}@@ -708,7 +708,7 @@ def test_user_group_form_create_valid(assert staff_user.groups.count() == 1-def test_user_group_form_create_not_valid(admin_client, staff_user):+def test_staff_form_create_not_valid(admin_client, staff_user):url = reverse('dashboard:staff-details', args=[staff_user.pk])data = {'groups': 1}admin_client.post(url, data)