Skip to content

Commit 3c6e06a

Browse files
committed
write to temporary location
1 parent 32c449e commit 3c6e06a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/catalog/test_base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919

2020
import pyarrow as pa
21+
from pathlib import PosixPath
22+
2123
import pytest
2224
from pytest_lazyfixture import lazy_fixture
2325

@@ -48,8 +50,10 @@
4850

4951

5052
@pytest.fixture
51-
def catalog() -> InMemoryCatalog:
52-
return InMemoryCatalog("test.in.memory.catalog", **{"test.key": "test.value"})
53+
def catalog(tmp_path: PosixPath) -> InMemoryCatalog:
54+
return InMemoryCatalog(
55+
"test.in.memory.catalog", warehouse_location=tmp_path.absolute().as_posix(), **{"test.key": "test.value"}
56+
)
5357

5458

5559
TEST_TABLE_IDENTIFIER = ("com", "organization", "department", "my_table")

0 commit comments

Comments
 (0)