Skip to content

Commit a2b3a3d

Browse files
committed
fix tests for cms 3
1 parent a4ded63 commit a2b3a3d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/codecov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ jobs:
4242
- name: Generate Report
4343
run: |
4444
coverage run ./run_tests.py
45-
- name: Generate XML report
46-
run: |
4745
coverage xml
4846
- name: Upload Coverage to Codecov
4947
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7

tests/test_form_rendering.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 import forms
@@ -9,6 +12,7 @@
912
from .fixtures import TestFixture
1013

1114

15+
@skipIf(cms_version < "4", "Form rendering tests require django CMS 4 or higher")
1216
class FormRenderingTestCase(TestFixture, CMSTestCase):
1317
"""Tests for rendering forms including template tags"""
1418

0 commit comments

Comments
 (0)