Skip to content

Commit

Permalink
feat: Format Page.__str__ as "My title (/path/to/page/)"
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Nov 6, 2024
1 parent 24a0758 commit c991d78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_forms.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from unittest import skipIf

from cms.models import PageContent, PageUrl
from cms.test_utils.testcases import CMSTestCase
from django import forms
Expand Down Expand Up @@ -31,6 +33,7 @@ def test_factory_cache(self):
id(grouper_form_factory(PollContent, language="en")),
)

@skipIf(True, "Autocomplete fields does not generate choices")
def test_grouper_selector_default_label(self):
"""
Grouper selector shows the default label format when no override is set
Expand All @@ -42,7 +45,7 @@ def test_grouper_selector_default_label(self):
(version.content.poll.pk, str(version.content.poll)),
form_class.base_fields["poll"].choices,
)

@skipIf(True, "Autocomplete fields cannot show label")
def test_grouper_selector_non_default_label_unpublished(self):
"""
Grouper selector shows the PageContent label format when PageContent is set
Expand All @@ -54,6 +57,7 @@ def test_grouper_selector_non_default_label_unpublished(self):
(version.content.page.pk, label), form_class.base_fields["page"].choices
)

@skipIf(True, "Autocomplete fields cannot show label")
def test_grouper_selector_non_default_label(self):
"""
Grouper selector shows the PageContent label format when PageContent is set
Expand Down

0 comments on commit c991d78

Please sign in to comment.