We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f683a0f commit 91f8fccCopy full SHA for 91f8fcc
1 file changed
tests/integration/custom_metadata_test.py
@@ -441,6 +441,7 @@ def cm_dq(
441
@pytest.fixture(scope="module")
442
def cm_sql(
443
client: AtlanClient,
444
+ term: AtlasGlossaryTerm,
445
) -> Generator[CustomMetadataDef, None, None]:
446
attribute_defs = [
447
AttributeDef.create(
@@ -458,6 +459,10 @@ def cm_sql(
458
459
locked=False,
460
)
461
yield cm
462
+ # Remove CM_SQL data from the term before purging the definition.
463
+ # test_save_merging_cm writes CM_SQL onto the term; without this cleanup
464
+ # Atlas rejects the typedef purge with ConflictError "has references".
465
+ client.asset.remove_custom_metadata(term.guid, cm_name=CM_SQL)
466
wait_for_successful_custometadatadef_purge(CM_SQL, client=client)
467
468
0 commit comments