

def test_sync_table_works_with_primary_keys_only_tables(self):
    sync_table(PrimaryKeysOnlyModel)
    table_meta = management._get_table_metadata(PrimaryKeysOnlyModel)
    self.assertIn('LeveledCompactionStrategy', table_meta.as_cql_query())
    PrimaryKeysOnlyModel.__options__['compaction']['class'] = 'SizeTieredCompactionStrategy'
    sync_table(PrimaryKeysOnlyModel)
    table_meta = management._get_table_metadata(PrimaryKeysOnlyModel)
    self.assertIn('SizeTieredCompactionStrategy', table_meta.as_cql_query())

dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/management/test_management.py SyncTableTests.test_sync_table_works_with_primary_keys_only_tables/original