Skip to content

Commit

Permalink
add logic for both cms < 4.1 and cms > 4.1 in test_admin. delete url
Browse files Browse the repository at this point in the history
  • Loading branch information
FreemanPancake committed Oct 30, 2024
1 parent 9163995 commit d8768d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2150,9 +2150,9 @@ def test_menuitem_changelist_delete_url_link_opens_in_sideframe(self):
url_markup = self.menuitem_modeladmin._get_delete_link(child, request)

if CMS_41:
# The url link should keep the sideframe close
self.assertNotIn("js-keep-sideframe", url_markup)
self.assertIn("js-close-sideframe", url_markup)
# The url link should keep the sideframe open by default
self.assertIn("js-keep-sideframe", url_markup)
self.assertNotIn("js-close-sideframe", url_markup)
else:
# The url link should keep the sideframe open
self.assertIn("js-versioning-keep-sideframe", url_markup)
Expand Down

0 comments on commit d8768d9

Please sign in to comment.