Skip to content

Commit

Permalink
Add skipIf reason
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 16, 2025
1 parent a4f5737 commit 2e52bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def test_change_language_menu_page_toolbar(self):
lang_code = "fr" if "Française" in item.name else "it"
self.assertIn(f"language={lang_code}", item.url)

@skipIf(cms_version <= Version("4.1.4"))
@skipIf(cms_version <= Version("4.1.4"), "For CMS 4.1.5 and bove: Add delete translation menu")
def test_change_language_menu_page_toolbar_including_delete(self):
"""Check that patched PageToolbar.change_language_menu also provides
Delete Translation links if DJANGOCMS_ALLOW_DELETING_VERSIONS is True.
Expand Down Expand Up @@ -584,7 +584,7 @@ def test_change_language_menu_page_toolbar_including_delete(self):
pk = page.get_admin_content(code).pk # get content object
self.assertIn(admin_reverse("cms_pagecontent_delete", args=(int(pk),)), item.url) # verify url

@skipIf(cms_version > Version("4.1.4"))
@skipIf(cms_version > Version("4.1.4"), "Only for CMS 4.1.4 and below: No delete translation menu")
def test_change_language_menu_page_toolbar_excluding_delete(self):
from djangocms_versioning import cms_toolbars

Expand Down

0 comments on commit 2e52bd4

Please sign in to comment.