File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,6 +340,30 @@ def test_cm_raci(
340340 assert not one .options .multi_value_select
341341
342342
343+ @pytest .mark .order (after = "test_cm_raci" )
344+ def test_show_as_featured_survives_update (
345+ client : AtlanClient , cm_raci : CustomMetadataDef
346+ ):
347+ existing = client .custom_metadata_cache .get_custom_metadata_def (name = CM_RACI )
348+ assert existing .attribute_defs
349+ attr = existing .attribute_defs [0 ]
350+ assert attr .options
351+ attr .options .show_as_featured = True
352+ assert existing .options
353+ existing .options .is_locked = True
354+ response = client .typedef .update (existing )
355+ assert response
356+ assert len (response .custom_metadata_defs ) == 1
357+ updated = response .custom_metadata_defs [0 ]
358+ assert updated .attribute_defs
359+ updated_attr = updated .attribute_defs [0 ]
360+ assert updated_attr .options
361+ assert updated_attr .options .show_as_featured is True
362+ assert updated .options
363+ updated .options .is_locked = False
364+ client .typedef .update (updated )
365+
366+
343367@pytest .fixture (scope = "module" )
344368def cm_enum (
345369 client : AtlanClient ,
Original file line number Diff line number Diff line change @@ -340,6 +340,30 @@ def test_cm_raci(
340340 assert not one .options .multi_value_select
341341
342342
343+ @pytest .mark .order (after = "test_cm_raci" )
344+ def test_show_as_featured_survives_update (
345+ client : AtlanClient , cm_raci : CustomMetadataDef
346+ ):
347+ existing = client .custom_metadata_cache .get_custom_metadata_def (name = CM_RACI )
348+ assert existing .attribute_defs
349+ attr = existing .attribute_defs [0 ]
350+ assert attr .options
351+ attr .options .show_as_featured = True
352+ assert existing .options
353+ existing .options .is_locked = True
354+ response = client .typedef .updater (existing )
355+ assert response
356+ assert len (response .custom_metadata_defs ) == 1
357+ updated = response .custom_metadata_defs [0 ]
358+ assert updated .attribute_defs
359+ updated_attr = updated .attribute_defs [0 ]
360+ assert updated_attr .options
361+ assert updated_attr .options .show_as_featured is True
362+ assert updated .options
363+ updated .options .is_locked = False
364+ client .typedef .updater (updated )
365+
366+
343367@pytest .fixture (scope = "module" )
344368def cm_enum (
345369 client : AtlanClient ,
You can’t perform that action at this time.
0 commit comments