File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,3 +107,22 @@ def test_append_terms_with_qualified_name(
107107 database = client .get_asset_by_guid (guid = database .guid , asset_type = Database )
108108 assert len (database .terms ) == 1
109109 assert database .terms [0 ].guid == term .guid
110+
111+
112+ def test_append_terms_using_ref_by_guid_for_term (
113+ client : AtlanClient ,
114+ make_term : Callable [[str ], AtlasGlossaryTerm ],
115+ database : Database ,
116+ ):
117+ term = make_term ("Term1" )
118+
119+ assert (
120+ database := client .append_terms (
121+ qualified_name = database .qualified_name ,
122+ asset_type = Database ,
123+ terms = [AtlasGlossaryTerm .ref_by_guid (guid = term .guid )],
124+ )
125+ )
126+ database = client .get_asset_by_guid (guid = database .guid , asset_type = Database )
127+ assert len (database .terms ) == 1
128+ assert database .terms [0 ].guid == term .guid
You can’t perform that action at this time.
0 commit comments