-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests to independently install djangocms-url-manager
- Loading branch information
Showing
3 changed files
with
52 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
from djangocms_frontend.contrib.link.forms import LinkForm, SmartLinkField | ||
from djangocms_frontend.contrib.link.helpers import get_choices | ||
|
||
from ..fixtures import DJANGO_CMS4, TestFixture | ||
from ..fixtures import TestFixture | ||
|
||
|
||
class LinkPluginTestCase(TestFixture, CMSTestCase): | ||
|
@@ -137,14 +137,14 @@ def test_link_form(self): | |
self.create_url(manual_url="https://www.django-cms.org/").id | ||
) | ||
) | ||
if DJANGO_CMS4 | ||
if hasattr(self, "create_url") | ||
else dict(external_link="https://www.django-cms.org/") | ||
), | ||
} | ||
) | ||
form = LinkForm(request.POST) | ||
self.assertTrue(form.is_valid(), f"{form.__class__.__name__}:form errors: {form.errors}") | ||
if DJANGO_CMS4: | ||
if hasattr(self, "create_url"): | ||
self.delete_urls() | ||
else: | ||
request.POST.update({"mailto": "[email protected]"}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters