Skip to content

Commit 421483b

Browse files
committed
fix tests for cms 3
1 parent aa21005 commit 421483b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_ajax_plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from unittest import skipIf
2+
3+
from cms import __version__ as cms_version
14
from cms.api import add_plugin
25
from cms.test_utils.testcases import CMSTestCase
36
from django.http import JsonResponse
@@ -105,6 +108,7 @@ def test_dispatch_with_json_accept_header_get(self):
105108
self.skipTest("AJAX GET requires more complex setup with context data")
106109

107110

111+
@skipIf(cms_version < "4", "Form rendering tests require django CMS 4 or higher")
108112
class AjaxFormSubmissionTestCase(TestFixture, CMSTestCase):
109113
"""Tests for AJAX form submission and validation"""
110114

0 commit comments

Comments
 (0)