We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa21005 commit 421483bCopy full SHA for 421483b
tests/test_ajax_plugin.py
@@ -1,3 +1,6 @@
1
+from unittest import skipIf
2
+
3
+from cms import __version__ as cms_version
4
from cms.api import add_plugin
5
from cms.test_utils.testcases import CMSTestCase
6
from django.http import JsonResponse
@@ -105,6 +108,7 @@ def test_dispatch_with_json_accept_header_get(self):
105
108
self.skipTest("AJAX GET requires more complex setup with context data")
106
109
107
110
111
+@skipIf(cms_version < "4", "Form rendering tests require django CMS 4 or higher")
112
class AjaxFormSubmissionTestCase(TestFixture, CMSTestCase):
113
"""Tests for AJAX form submission and validation"""
114
0 commit comments