Skip to content

Commit 8fa8d1b

Browse files
committed
write to temporary location
1 parent be66e24 commit 8fa8d1b

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
@@ -17,6 +17,8 @@
1717
# pylint:disable=redefined-outer-name
1818

1919

20+
from pathlib import PosixPath
21+
2022
import pytest
2123

2224
from pyiceberg.catalog import (
@@ -46,8 +48,10 @@
4648

4749

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

5256

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

0 commit comments

Comments
 (0)