Skip to content

Commit cedfab4

Browse files
feat(fabric): Catalog dropping functionality in TestContext
1 parent 3af7ec9 commit cedfab4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/core/engine_adapter/integration/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,9 @@ def drop_catalog(self, catalog_name: str):
699699
return # bigquery cannot create/drop catalogs
700700
if self.dialect == "databricks":
701701
self.engine_adapter.execute(f"DROP CATALOG IF EXISTS {catalog_name} CASCADE")
702+
elif self.dialect == "fabric":
703+
# Use the engine adapter's built-in catalog dropping functionality
704+
self.engine_adapter.drop_catalog(catalog_name)
702705
else:
703706
self.engine_adapter.execute(f'DROP DATABASE IF EXISTS "{catalog_name}"')
704707

0 commit comments

Comments
 (0)