Skip to content

Commit

Permalink
add CMS 4.1 compatiable changes. fix skip message.
Browse files Browse the repository at this point in the history
  • Loading branch information
FreemanPancake committed Oct 24, 2024
1 parent a3c6223 commit ffb5ca2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import skipIf, skip
from unittest import skipIf

from django.contrib import admin
from django.contrib.contenttypes.models import ContentType
Expand All @@ -21,7 +21,7 @@


class AliasAdminReferencesMonkeyPatchTestCase(CMSTestCase):
@skip("skip for now, KeyError at line 52: 'language'.")
@skipIf(DJANGO_CMS_4_1, "skip for now, KeyError at line 52: 'language'.")
def test_list_display(self):
"""
The monkeypatch extends the alias admin, adding the show references link
Expand All @@ -43,7 +43,6 @@ def test_list_display(self):
else:
alias_admin = AliasContentAdmin(AliasContent, admin.AdminSite())
func = alias_admin.get_list_display(request)[-1]
print(f'------------------------{alias_admin.get_list_display(request)[-1]}')
references_url = reverse_lazy(
"djangocms_references:references-index",
kwargs={"content_type_id": content_type.id, "object_id": alias.id}
Expand Down

0 comments on commit ffb5ca2

Please sign in to comment.