Skip to content

Commit

Permalink
Fix test failures for django main
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Dec 29, 2023
1 parent 301b533 commit f74b1fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
from djangocms_versioning.test_utils.polls.cms_config import PollsCMSConfig
from djangocms_versioning.test_utils.polls.models import Answer, Poll, PollContent

if not hasattr(CMSTestCase, "assertQuerySetEqual"):
# Django < 4.2
CMSTestCase.assertQuerySetEqual = CMSTestCase.assertQuerysetEqual


class BaseStateTestCase(CMSTestCase):
def assertRedirectsToVersionList(self, response, version):
Expand Down
4 changes: 4 additions & 0 deletions tests/test_datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
from djangocms_versioning.test_utils.people.models import PersonContent
from djangocms_versioning.test_utils.polls.models import Poll, PollContent

if not hasattr(CMSTestCase, "assertQuerySetEqual"):
# Django < 4.2
CMSTestCase.assertQuerySetEqual = CMSTestCase.assertQuerysetEqual


class VersionableItemTestCase(CMSTestCase):
def setUp(self):
Expand Down
4 changes: 4 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
from djangocms_versioning.test_utils.polls.cms_config import PollsCMSConfig
from djangocms_versioning.test_utils.polls.models import Poll, PollContent

if not hasattr(CMSTestCase, "assertQuerySetEqual"):
# Django < 4.2
CMSTestCase.assertQuerySetEqual = CMSTestCase.assertQuerysetEqual


class CopyTestCase(CMSTestCase):
def _create_versionables_mock(self, copy_function):
Expand Down

0 comments on commit f74b1fc

Please sign in to comment.