Skip to content

Commit d475e62

Browse files
committed
add test
1 parent d8bc1ca commit d475e62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/table/test_init.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,3 +1154,10 @@ def test_serialize_commit_table_request() -> None:
11541154

11551155
deserialized_request = CommitTableRequest.model_validate_json(request.model_dump_json())
11561156
assert request == deserialized_request
1157+
1158+
1159+
def test_table_update_have_corresponding_dispatch() -> None:
1160+
from pyiceberg.table import TableUpdate, _apply_table_update
1161+
# every TableUpdate should have a corresponding `_apply_table_update` dispatch function
1162+
1163+
assert len(_apply_table_update.registry) == len(TableUpdate.__origin__.__args__) # type: ignore

0 commit comments

Comments
 (0)