@@ -163,16 +163,19 @@ def test_cm_ipr(cm_ipr: CustomMetadataDef):
163
163
assert one .display_name == CM_ATTR_IPR_MANDATORY
164
164
assert one .name != CM_ATTR_IPR_MANDATORY
165
165
assert one .type_name == AtlanCustomAttributePrimitiveType .BOOLEAN .value
166
+ assert one .options
166
167
assert not one .options .multi_value_select
167
168
one = attributes [3 ]
168
169
assert one .display_name == CM_ATTR_IPR_DATE
169
170
assert one .name != CM_ATTR_IPR_DATE
170
171
assert one .type_name == AtlanCustomAttributePrimitiveType .DATE .value
172
+ assert one .options
171
173
assert not one .options .multi_value_select
172
174
one = attributes [4 ]
173
175
assert one .display_name == CM_ATTR_IPR_URL
174
176
assert one .name != CM_ATTR_IPR_URL
175
177
assert one .type_name == AtlanCustomAttributePrimitiveType .STRING .value
178
+ assert one .options
176
179
assert not one .options .multi_value_select
177
180
178
181
@@ -237,16 +240,19 @@ def test_cm_raci(cm_raci: CustomMetadataDef):
237
240
assert one .display_name == CM_ATTR_RACI_CONSULTED
238
241
assert one .name != CM_ATTR_RACI_CONSULTED
239
242
assert one .type_name == f"array<{ AtlanCustomAttributePrimitiveType .STRING .value } >"
243
+ assert one .options
240
244
assert one .options .multi_value_select
241
245
one = attributes [3 ]
242
246
assert one .display_name == CM_ATTR_RACI_INFORMED
243
247
assert one .name != CM_ATTR_RACI_INFORMED
244
248
assert one .type_name == f"array<{ AtlanCustomAttributePrimitiveType .STRING .value } >"
249
+ assert one .options
245
250
assert one .options .multi_value_select
246
251
one = attributes [4 ]
247
252
assert one .display_name == CM_ATTR_RACI_EXTRA
248
253
assert one .name != CM_ATTR_RACI_EXTRA
249
254
assert one .type_name == AtlanCustomAttributePrimitiveType .STRING .value
255
+ assert one .options
250
256
assert not one .options .multi_value_select
251
257
252
258
@@ -324,6 +330,7 @@ def test_cm_dq(cm_dq: CustomMetadataDef):
324
330
assert one .display_name == CM_ATTR_QUALITY_TYPE
325
331
assert one .name != CM_ATTR_QUALITY_TYPE
326
332
assert one .type_name == CM_ENUM_DQ_TYPE
333
+ assert one .options
327
334
assert not one .options .multi_value_select
328
335
assert one .options .primitive_type == AtlanCustomAttributePrimitiveType .OPTIONS .value
329
336
@@ -552,6 +559,7 @@ def test_remove_attribute(client: AtlanClient, cm_raci: CustomMetadataDef):
552
559
to_keep = existing_attr
553
560
if existing_attr .display_name == CM_ATTR_RACI_EXTRA :
554
561
to_keep = existing_attr .archive (by = "test-automation" )
562
+ assert to_keep .options
555
563
_removal_epoch = to_keep .options .archived_at
556
564
updated_attrs .append (to_keep )
557
565
existing .attribute_defs = updated_attrs
@@ -832,6 +840,7 @@ def _validate_raci_structure(
832
840
assert one .display_name == CM_ATTR_RACI_RESPONSIBLE
833
841
assert one .name != CM_ATTR_RACI_RESPONSIBLE
834
842
assert one .type_name == f"array<{ AtlanCustomAttributePrimitiveType .STRING .value } >"
843
+ assert one .options
835
844
assert "Database" in str (one .options .custom_applicable_entity_types )
836
845
assert not one .is_archived ()
837
846
assert one .options .multi_value_select
@@ -840,6 +849,7 @@ def _validate_raci_structure(
840
849
assert one .display_name == CM_ATTR_RACI_ACCOUNTABLE
841
850
assert one .name != CM_ATTR_RACI_ACCOUNTABLE
842
851
assert one .type_name == AtlanCustomAttributePrimitiveType .STRING .value
852
+ assert one .options
843
853
assert "Table" in str (one .options .custom_applicable_entity_types )
844
854
assert not one .is_archived ()
845
855
assert not one .options .multi_value_select
@@ -848,6 +858,7 @@ def _validate_raci_structure(
848
858
assert one .display_name == CM_ATTR_RACI_CONSULTED
849
859
assert one .name != CM_ATTR_RACI_CONSULTED
850
860
assert one .type_name == f"array<{ AtlanCustomAttributePrimitiveType .STRING .value } >"
861
+ assert one .options
851
862
assert "Column" in str (one .options .custom_applicable_entity_types )
852
863
assert not one .is_archived ()
853
864
assert one .options .multi_value_select
@@ -856,6 +867,7 @@ def _validate_raci_structure(
856
867
assert one .display_name == CM_ATTR_RACI_INFORMED
857
868
assert not one .name == CM_ATTR_RACI_INFORMED
858
869
assert one .type_name == f"array<{ AtlanCustomAttributePrimitiveType .STRING .value } >"
870
+ assert one .options
859
871
assert "MaterialisedView" in str (one .options .custom_applicable_entity_types )
860
872
assert not one .is_archived ()
861
873
assert one .options .multi_value_select
@@ -868,6 +880,7 @@ def _validate_raci_structure(
868
880
)
869
881
assert one .name != CM_ATTR_RACI_EXTRA
870
882
assert one .type_name == AtlanCustomAttributePrimitiveType .STRING .value
883
+ assert one .options
871
884
assert "AtlasGlossaryTerm" in str (one .options .custom_applicable_entity_types )
872
885
assert not one .options .multi_value_select
873
886
assert one .is_archived ()
0 commit comments