Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't compare post-0.7 CfDef attributes in tests

  • Loading branch information...
commit 2b34f072838c90afbfefcdb42868d763af5fe4f8 1 parent 0c7d5e9
@thobbs thobbs authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/test_cassandraclient.py
View
11 test/test_cassandraclient.py
@@ -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.