Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't compare post-0.7 CfDef attributes in tests

  • Loading branch information...
commit cdbd60ab9cc2fb288c524ae232ad719d81fd8de4 1 parent ff57817
Tyler Hobbs thobbs authored thepaul committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/test_cassandraclient.py
11 test/test_cassandraclient.py
View
@@ -267,10 +267,21 @@ def test_column_family_manipulation(self):
memtable_operations_in_millions=1.1671875,
replicate_on_write=False,
merge_shards_chance=0.10000000000000001,
+ row_cache_provider=None,
+ key_alias=None,
)
+ post_07_fields = ['replicate_on_write', 'merge_shards_chance',
+ 'key_validation_class', 'row_cache_provider', 'key_alias']
+
yield self.client.system_add_column_family(cfdef)
ksdef = yield self.client.describe_keyspace(KEYSPACE)
cfdef2 = [c for c in ksdef.cf_defs if c.name == T_CF][0]
+
+ for field in post_07_fields:
+ # Most of these are ignored in 0.7, so we can't reliably compare them
+ setattr(cfdef, field, None)
+ setattr(cfdef2, field, None)
+
# we don't know the id ahead of time. copy the new one so the equality
# comparison won't fail
cfdef.id = cfdef2.id
Please sign in to comment.
Something went wrong with that request. Please try again.