Skip to content

Commit

Permalink
Fix common test suite for django CMS 3.11, 4.0, and 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed May 19, 2024
1 parent 35da1da commit d161417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/djangocms_snippet/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.1.1"
__version__ = "5.0.0a1"
2 changes: 1 addition & 1 deletion tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_admin_list_display_without_versioning(self):
self.assertEqual(self.snippet_admin.__class__.__bases__, (admin.ModelAdmin, ))
self.assertEqual(list_display, ('slug', 'name'))

@skipIf(cms_version < "4", "Django CMS 4 required")
@skipIf(not cms_version.startswith("4.0."), "Django CMS 4 required")
@override_settings(DJANGOCMS_SNIPPET_VERSIONING_ENABLED=True)
def test_admin_list_display_with_versioning(self):
"""
Expand Down

0 comments on commit d161417

Please sign in to comment.