def test_no_create_fields_field_exists_has_columns(config): del config["datasources"]["testdb2"] table_config = config["datasources"]["testdb1"]["tables"]["main.partners"] table_config["create_fields"] = False wh = Warehouse(config=config) # ds_partner_name was already defined, make sure it doesnt get overwritten dim = wh.get_dimension("ds_partner_name") assert dim.sa_type.length == 50
def test_dimension_copy(config): wh = Warehouse(config=config) field = wh.get_dimension("partner_name") info(field.copy())