4848import pytest
4949from moto import mock_aws
5050
51- from pyiceberg import schema
5251from pyiceberg .catalog import Catalog , load_catalog
5352from pyiceberg .catalog .noop import NoopCatalog
5453from pyiceberg .expressions import BoundReference
@@ -140,7 +139,7 @@ def pytest_addoption(parser: pytest.Parser) -> None:
140139
141140@pytest .fixture (scope = "session" )
142141def 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" )
153152def 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" )
182181def 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" )
233232def 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" )
305304def 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