Skip to content

Commit b3756fc

Browse files
committed
Fix ATTACH in test
1 parent 80b5c26 commit b3756fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/core/engine_adapter/test_duckdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import typing as t
22

3-
import os
43
import pandas as pd # noqa: TID253
54
import pytest
65
from pytest_mock.plugin import MockerFixture
@@ -110,12 +109,13 @@ def test_drop_catalog(make_mocked_engine_adapter: t.Callable) -> None:
110109

111110

112111
def test_ducklake_partitioning(adapter: EngineAdapter, duck_conn, tmp_path):
113-
os.chdir(tmp_path)
114112
catalog = "a_ducklake_db"
115113

116114
duck_conn.install_extension("ducklake")
117115
duck_conn.load_extension("ducklake")
118-
duck_conn.execute(f"ATTACH 'ducklake:{catalog}';")
116+
duck_conn.execute(
117+
f"ATTACH 'ducklake:{catalog}.ducklake' AS {catalog} (DATA_PATH '{tmp_path}');"
118+
)
119119

120120
# no partitions on catalog creation
121121
partition_info = duck_conn.execute(

0 commit comments

Comments
 (0)