File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
191191def get_unsupported_lower_protocol ():
192192 """
Original file line number Diff line number Diff line change 4141from cassandra .cqlengine import operators
4242from cassandra .util import uuid_from_time
4343from cassandra .cqlengine .connection import get_session
44- from tests .integration import CASSANDRA_VERSION , greaterthancass21
44+ from tests .integration import CASSANDRA_VERSION , greaterthancass21 , greaterthanorequalcass30
4545from tests .integration .cqlengine import execute_count , DEFAULT_KEYSPACE
4646from 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 """
You can’t perform that action at this time.
0 commit comments