Skip to content

Commit

Permalink
Remove outdated comments about setting up permissions to only give ce…
Browse files Browse the repository at this point in the history
…rtain buttons

These were only relevant when the assertions were retrieving the relevant buttons by index.

These were only meaningful when
  • Loading branch information
gasman committed Sep 21, 2023
1 parent 4815ae0 commit 9d1b380
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wagtail/admin/tests/test_buttons_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ def test_delete_button_with_next_url(self):
Ensure that the built in delete button supports a next_url provided.
"""

# page_listing_more_button generator yields only `Delete button` with this permission set
page_perms = DeleteOnlyPagePerms()
page = self.root_page
base_url = reverse("wagtailadmin_pages:delete", args=[page.id])
Expand All @@ -271,7 +270,6 @@ def test_delete_button_with_invalid_next_url(self):
As the page is now deleted and cannot be edited.
"""

# permissions should yield two buttons, delete and unpublish
page_perms = DeleteAndUnpublishPagePerms()
page = self.root_page

Expand Down

0 comments on commit 9d1b380

Please sign in to comment.