Skip to content

Commit 55de4ac

Browse files
committed
Adapt the existing tests to use the moved utility
Signed-off-by: Anton Zhyltsou <[email protected]>
1 parent a465bd1 commit 55de4ac

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

tests/unit/macros/relations/test_table_macros.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,7 @@
44

55
from dbt.adapters.databricks import catalogs, constants
66
from tests.unit.macros.base import MacroTestBase
7-
8-
9-
def unity_relation(
10-
table_format: Optional[str] = None,
11-
file_format: Optional[str] = None,
12-
location_root: Optional[str] = None,
13-
location_path: Optional[str] = None,
14-
) -> catalogs.DatabricksCatalogRelation:
15-
catalog_integration = constants.DEFAULT_UNITY_CATALOG
16-
return catalogs.DatabricksCatalogRelation(
17-
catalog_type=catalog_integration.catalog_type,
18-
catalog_name=catalog_integration.catalog_name,
19-
table_format=table_format or catalog_integration.table_format,
20-
file_format=file_format or catalog_integration.file_format,
21-
external_volume=location_root or catalog_integration.external_volume,
22-
location_path=location_path,
23-
)
7+
from tests.unit.utils import unity_relation
248

259

2610
class TestCreateTableAs(MacroTestBase):

0 commit comments

Comments
 (0)