Skip to content

Commit 433d473

Browse files
committed
Add additional integration test
1 parent 8edd492 commit 433d473

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

tests/integration/test_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)