Skip to content

Commit 15ad07c

Browse files
authored
chore: update tests to use new db dev env (#1598)
1 parent 83e60f5 commit 15ad07c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/core/engine_adapter/test_integration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,8 @@ def test_catalog_operations(ctx: TestContext):
267267
pytest.skip("Catalog operation tests only need to run once so we skip anything not query")
268268
catalog_name = "testing"
269269
if ctx.dialect == "databricks":
270-
# We don't create a catalog because we don't have a dedicated databricks environment to test against
271-
# and we don't want to pollute with extra catalogs
272-
catalog_name = "system"
270+
catalog_name = "catalogtest"
271+
ctx.engine_adapter.execute(f"CREATE CATALOG IF NOT EXISTS {catalog_name}")
273272
elif ctx.dialect == "tsql":
274273
ctx.engine_adapter.cursor.connection.autocommit(True)
275274
try:
@@ -320,7 +319,8 @@ def create_objects_and_validate(schema_name: str):
320319
pytest.skip("Drop Schema Catalog tests only need to run once so we skip anything not query")
321320
catalog_name = "testing"
322321
if ctx.dialect == "databricks":
323-
catalog_name = "test_ingest"
322+
catalog_name = "catalogtest"
323+
ctx.engine_adapter.execute(f"CREATE CATALOG IF NOT EXISTS {catalog_name}")
324324
elif ctx.dialect == "tsql":
325325
ctx.engine_adapter.cursor.connection.autocommit(True)
326326
try:

0 commit comments

Comments
 (0)