This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new d0a70c4  Fix lint tests failed in main (#253)
d0a70c4 is described below

commit d0a70c4f25400986907f9d8c37dccab0eb78f9f9
Author: Hussein Awala <[email protected]>
AuthorDate: Fri Jan 5 22:41:44 2024 +0100

    Fix lint tests failed in main (#253)
---
 tests/table/test_init.py | 96 +++++++++++++++++++++++-------------------------
 1 file changed, 46 insertions(+), 50 deletions(-)

diff --git a/tests/table/test_init.py b/tests/table/test_init.py
index 925e98d..475814a 100644
--- a/tests/table/test_init.py
+++ b/tests/table/test_init.py
@@ -850,56 +850,52 @@ def test_assert_default_sort_order_id(table_v2: Table) -> 
None:
 
 
 def test_correct_schema() -> None:
-    table_metadata = TableMetadataV2(
-        **{
-            "format-version": 2,
-            "table-uuid": "9c12d441-03fe-4693-9a96-a0705ddf69c1",
-            "location": "s3://bucket/test/location",
-            "last-sequence-number": 34,
-            "last-updated-ms": 1602638573590,
-            "last-column-id": 3,
-            "current-schema-id": 1,
-            "schemas": [
-                {"type": "struct", "schema-id": 0, "fields": [{"id": 1, 
"name": "x", "required": True, "type": "long"}]},
-                {
-                    "type": "struct",
-                    "schema-id": 1,
-                    "identifier-field-ids": [1, 2],
-                    "fields": [
-                        {"id": 1, "name": "x", "required": True, "type": 
"long"},
-                        {"id": 2, "name": "y", "required": True, "type": 
"long"},
-                        {"id": 3, "name": "z", "required": True, "type": 
"long"},
-                    ],
-                },
-            ],
-            "default-spec-id": 0,
-            "partition-specs": [
-                {"spec-id": 0, "fields": [{"name": "x", "transform": 
"identity", "source-id": 1, "field-id": 1000}]}
-            ],
-            "last-partition-id": 1000,
-            "default-sort-order-id": 0,
-            "sort-orders": [],
-            "current-snapshot-id": 123,
-            "snapshots": [
-                {
-                    "snapshot-id": 234,
-                    "timestamp-ms": 1515100955770,
-                    "sequence-number": 0,
-                    "summary": {"operation": "append"},
-                    "manifest-list": "s3://a/b/1.avro",
-                    "schema-id": 10,
-                },
-                {
-                    "snapshot-id": 123,
-                    "timestamp-ms": 1515100955770,
-                    "sequence-number": 0,
-                    "summary": {"operation": "append"},
-                    "manifest-list": "s3://a/b/1.avro",
-                    "schema-id": 0,
-                },
-            ],
-        }
-    )
+    table_metadata = TableMetadataV2(**{
+        "format-version": 2,
+        "table-uuid": "9c12d441-03fe-4693-9a96-a0705ddf69c1",
+        "location": "s3://bucket/test/location",
+        "last-sequence-number": 34,
+        "last-updated-ms": 1602638573590,
+        "last-column-id": 3,
+        "current-schema-id": 1,
+        "schemas": [
+            {"type": "struct", "schema-id": 0, "fields": [{"id": 1, "name": 
"x", "required": True, "type": "long"}]},
+            {
+                "type": "struct",
+                "schema-id": 1,
+                "identifier-field-ids": [1, 2],
+                "fields": [
+                    {"id": 1, "name": "x", "required": True, "type": "long"},
+                    {"id": 2, "name": "y", "required": True, "type": "long"},
+                    {"id": 3, "name": "z", "required": True, "type": "long"},
+                ],
+            },
+        ],
+        "default-spec-id": 0,
+        "partition-specs": [{"spec-id": 0, "fields": [{"name": "x", 
"transform": "identity", "source-id": 1, "field-id": 1000}]}],
+        "last-partition-id": 1000,
+        "default-sort-order-id": 0,
+        "sort-orders": [],
+        "current-snapshot-id": 123,
+        "snapshots": [
+            {
+                "snapshot-id": 234,
+                "timestamp-ms": 1515100955770,
+                "sequence-number": 0,
+                "summary": {"operation": "append"},
+                "manifest-list": "s3://a/b/1.avro",
+                "schema-id": 10,
+            },
+            {
+                "snapshot-id": 123,
+                "timestamp-ms": 1515100955770,
+                "sequence-number": 0,
+                "summary": {"operation": "append"},
+                "manifest-list": "s3://a/b/1.avro",
+                "schema-id": 0,
+            },
+        ],
+    })
 
     t = Table(
         identifier=("default", "t1"),

Reply via email to