Skip to content

Commit bcb67ca

Browse files
committed
Fix final Pydantic v2 test failure for ColumnName wrapper
Fixed assertion in test_create_table_request_minimal: - Changed: assert table.columns[0].name == "id" - To: assert table.columns[0].name.root == "id" ColumnName is also a Pydantic v2 wrapped type that requires .root accessor. All 46 tests now pass!
1 parent e13765c commit bcb67ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk-examples/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_create_table_request_minimal(self):
8282
assert table.name.root == "test-table"
8383
assert table.databaseSchema.root == "test-service.test-db.test-schema"
8484
assert len(table.columns) == 1
85-
assert table.columns[0].name == "id"
85+
assert table.columns[0].name.root == "id"
8686
assert table.columns[0].dataType == DataType.BIGINT
8787

8888
def test_create_table_request_with_multiple_columns(self):

0 commit comments

Comments
 (0)