Skip to content

Commit 9011acd

Browse files
committed
Use parameterized catalog fixture for cross-platform test compatibility
1 parent 2025e27 commit 9011acd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/table/test_init.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import json
1919
import uuid
2020
from copy import copy
21-
from pathlib import Path
2221
from typing import Any
2322

2423
import pytest
@@ -2059,12 +2058,9 @@ def test_build_partition_predicate_with_evolved_fields(table_v2: Table) -> None:
20592058
)
20602059

20612060

2062-
def test_dynamic_partition_overwrite_with_partition_spec_evolution(warehouse: Path) -> None:
2061+
def test_dynamic_partition_overwrite_with_partition_spec_evolution(catalog: Catalog) -> None:
20632062
import pyarrow as pa
20642063

2065-
from pyiceberg.catalog.sql import SqlCatalog
2066-
2067-
catalog = SqlCatalog(name="test", uri=f"sqlite:///{warehouse.as_posix()}/test_dpo_evolve.db", warehouse=warehouse.as_uri())
20682064
catalog.create_namespace("default")
20692065
schema = Schema(
20702066
NestedField(1, "category", StringType(), required=False),

0 commit comments

Comments
 (0)