Skip to content

Commit 87f9e7a

Browse files
authored
nit: Clean up import in conftest.py (#1848)
<!-- Thanks for opening a pull request! --> <!-- In the case this PR will resolve an issue, please replace ${GITHUB_ISSUE_ID} below with the actual Github issue id. --> <!-- Closes #${GITHUB_ISSUE_ID} --> # Rationale for this change # Are these changes tested? # Are there any user-facing changes? <!-- In the case of user-facing changes, please add the changelog label. -->
1 parent 172d9a7 commit 87f9e7a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/conftest.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import pytest
4949
from moto import mock_aws
5050

51-
from pyiceberg import schema
5251
from pyiceberg.catalog import Catalog, load_catalog
5352
from pyiceberg.catalog.noop import NoopCatalog
5453
from pyiceberg.expressions import BoundReference
@@ -140,7 +139,7 @@ def pytest_addoption(parser: pytest.Parser) -> None:
140139

141140
@pytest.fixture(scope="session")
142141
def table_schema_simple() -> Schema:
143-
return schema.Schema(
142+
return Schema(
144143
NestedField(field_id=1, name="foo", field_type=StringType(), required=False),
145144
NestedField(field_id=2, name="bar", field_type=IntegerType(), required=True),
146145
NestedField(field_id=3, name="baz", field_type=BooleanType(), required=False),
@@ -151,7 +150,7 @@ def table_schema_simple() -> Schema:
151150

152151
@pytest.fixture(scope="session")
153152
def table_schema_with_full_nested_fields() -> Schema:
154-
return schema.Schema(
153+
return Schema(
155154
NestedField(
156155
field_id=1,
157156
name="foo",
@@ -180,7 +179,7 @@ def table_schema_with_full_nested_fields() -> Schema:
180179

181180
@pytest.fixture(scope="session")
182181
def table_schema_nested() -> Schema:
183-
return schema.Schema(
182+
return Schema(
184183
NestedField(field_id=1, name="foo", field_type=StringType(), required=False),
185184
NestedField(field_id=2, name="bar", field_type=IntegerType(), required=True),
186185
NestedField(field_id=3, name="baz", field_type=BooleanType(), required=False),
@@ -231,7 +230,7 @@ def table_schema_nested() -> Schema:
231230

232231
@pytest.fixture(scope="session")
233232
def table_schema_nested_with_struct_key_map() -> Schema:
234-
return schema.Schema(
233+
return Schema(
235234
NestedField(field_id=1, name="foo", field_type=StringType(), required=True),
236235
NestedField(field_id=2, name="bar", field_type=IntegerType(), required=True),
237236
NestedField(field_id=3, name="baz", field_type=BooleanType(), required=False),
@@ -303,7 +302,7 @@ def table_schema_nested_with_struct_key_map() -> Schema:
303302

304303
@pytest.fixture(scope="session")
305304
def table_schema_with_all_types() -> Schema:
306-
return schema.Schema(
305+
return Schema(
307306
NestedField(field_id=1, name="boolean", field_type=BooleanType(), required=True),
308307
NestedField(field_id=2, name="integer", field_type=IntegerType(), required=True),
309308
NestedField(field_id=3, name="long", field_type=LongType(), required=True),

0 commit comments

Comments
 (0)