Skip to content

Commit 19fbf98

Browse files
committed
add test
1 parent 255e527 commit 19fbf98

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
@@ -1206,3 +1206,10 @@ def test_update_metadata_log_overflow(table_v2: Table) -> None:
12061206
table_v2.metadata_location,
12071207
)
12081208
assert len(new_metadata.metadata_log) == 1
1209+
1210+
1211+
def test_table_update_have_corresponding_dispatch() -> None:
1212+
from pyiceberg.table import TableUpdate, _apply_table_update
1213+
# every TableUpdate should have a corresponding `_apply_table_update` dispatch function
1214+
1215+
assert len(_apply_table_update.registry) == len(TableUpdate.__origin__.__args__) # type: ignore

0 commit comments

Comments
 (0)