Skip to content

Commit

Permalink
PYTHON-1402 Support running test suite with DSE 6.9.0 (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-antoniak authored Oct 15, 2024
1 parent c4aff64 commit d15412f
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/integration/__init__.py
Original file line number Diff line number Diff line change
@@ -342,6 +342,7 @@ def _id_and_mark(f):
greaterthanorequaldse50 = unittest.skipUnless(DSE_VERSION and DSE_VERSION >= Version('5.0'), "DSE 5.0 or greater required for this test")
lessthandse51 = unittest.skipUnless(DSE_VERSION and DSE_VERSION < Version('5.1'), "DSE version less than 5.1 required")
lessthandse60 = unittest.skipUnless(DSE_VERSION and DSE_VERSION < Version('6.0'), "DSE version less than 6.0 required")
lessthandse69 = unittest.skipUnless(DSE_VERSION and DSE_VERSION < Version('6.9'), "DSE version less than 6.9 required")

pypy = unittest.skipUnless(platform.python_implementation() == "PyPy", "Test is skipped unless it's on PyPy")
requiresmallclockgranularity = unittest.skipIf("Windows" in platform.system() or "asyncore" in EVENT_LOOP_MANAGER,
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@

from tests.integration.cqlengine.base import BaseCassEngTestCase, TestQueryUpdateModel
from tests.integration.cqlengine import DEFAULT_KEYSPACE
from tests.integration import greaterthanorequalcass3_10, TestCluster
from tests.integration import greaterthanorequalcass3_10, lessthandse69, TestCluster

from cassandra.cqlengine.connection import execute

@@ -101,6 +101,7 @@ def test_insert_statement_execute(self):
self.assertEqual(TestQueryUpdateModel.objects.count(), 0)

@greaterthanorequalcass3_10
@lessthandse69
def test_like_operator(self):
"""
Test to verify the like operator works appropriately

0 comments on commit d15412f

Please sign in to comment.