Skip to content

Commit ff9f3f0

Browse files
committed
Protocol 1, 2 not supported anymore
1 parent daffcd3 commit ff9f3f0

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

tests/integration/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ def get_supported_protocol_versions():
180180
elif CASSANDRA_VERSION >= Version('3.0'):
181181
return (3, 4)
182182
elif CASSANDRA_VERSION >= Version('2.2'):
183-
return (1, 2, 3, 4)
183+
return (3, 4)
184184
elif CASSANDRA_VERSION >= Version('2.1'):
185-
return (1, 2, 3)
185+
return (3, )
186186
elif CASSANDRA_VERSION >= Version('2.0'):
187-
return (1, 2)
187+
raise Exception("Cassandra Version 2.0 not supported anymore")
188188
else:
189-
raise Exception("Cassandra Version not supported anymore")
189+
raise Exception("Cassandra Version {} not supported anymore".format(CASSANDRA_VERSION))
190190

191191
def get_unsupported_lower_protocol():
192192
"""

tests/integration/cqlengine/query/test_queryset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from cassandra.cqlengine import operators
4242
from cassandra.util import uuid_from_time
4343
from cassandra.cqlengine.connection import get_session
44-
from tests.integration import CASSANDRA_VERSION, greaterthancass21
44+
from tests.integration import CASSANDRA_VERSION, greaterthancass21, greaterthanorequalcass30
4545
from tests.integration.cqlengine import execute_count, DEFAULT_KEYSPACE
4646
from tests.integration.cqlengine import mock_execute_async
4747

@@ -827,6 +827,7 @@ def test_delete_without_any_where_args(self):
827827
with self.assertRaises(query.QueryException):
828828
TestModel.objects(attempt_id=0).delete()
829829

830+
@greaterthanorequalcass30
830831
@execute_count(18)
831832
def test_range_deletion(self):
832833
"""

0 commit comments

Comments
 (0)