skip test if protocol < 2
skip test if protocol < 2
This commit is contained in:
@@ -4,7 +4,7 @@ from cqlengine import Model
|
|||||||
from cqlengine import columns
|
from cqlengine import columns
|
||||||
from cqlengine.management import sync_table, drop_table
|
from cqlengine.management import sync_table, drop_table
|
||||||
from cqlengine.models import ModelDefinitionException
|
from cqlengine.models import ModelDefinitionException
|
||||||
from cqlengine.tests.base import BaseCassEngTestCase
|
from cqlengine.tests.base import BaseCassEngTestCase, CASSANDRA_VERSION
|
||||||
from cqlengine.connection import get_cluster
|
from cqlengine.connection import get_cluster
|
||||||
|
|
||||||
cluster = get_cluster()
|
cluster = get_cluster()
|
||||||
@@ -23,6 +23,7 @@ class TestStaticColumn(BaseCassEngTestCase):
|
|||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
super(TestStaticColumn, cls).setUpClass()
|
super(TestStaticColumn, cls).setUpClass()
|
||||||
drop_table(TestStaticModel)
|
drop_table(TestStaticModel)
|
||||||
|
if CASSANDRA_VERSION >= 20:
|
||||||
sync_table(TestStaticModel)
|
sync_table(TestStaticModel)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user