Skip to content

Commit

Permalink
fix: reformat test_site_summary.py according to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
USER authored and USER committed Jan 4, 2025
1 parent 985f811 commit 01d9634
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions wagtail/admin/tests/test_site_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,13 @@ def test_user_with_limited_page_permissions_sees_proper_page_count(self):
self.assertSummaryContains("1 Page")

def test_user_with_only_unlock_permission_sees_proper_page_count(self):
"""
Test user with 'unlock' permission sees correct page count.
"""
self.user.is_superuser = False
self.user.save()
test_page_group_with_only_unlock = Group.objects.create(
name="Test page unlock"
)
test_page_group_with_only_unlock = Group.objects.create(name="Test page unlock")
GroupPagePermission.objects.create(
group=test_page_group_with_only_unlock,
page=self.__class__.test_page,
permission_type="unlock"
permission_type="unlock",
)
self.user.groups.add(test_page_group_with_only_unlock)
self.assertSummaryContains("1 Page")

0 comments on commit 01d9634

Please sign in to comment.