Skip to content

Commit 87b2ae0

Browse files
committed
add test
1 parent 9fd440e commit 87b2ae0

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
@@ -1258,3 +1258,10 @@ def test_table_module_refactoring_backward_compatibility() -> None:
12581258
)
12591259
except Exception as exc:
12601260
raise pytest.fail("Importing moved modules should not raise an exception") from exc
1261+
1262+
1263+
def test_table_update_have_corresponding_dispatch() -> None:
1264+
from pyiceberg.table import TableUpdate, _apply_table_update
1265+
# asser that every TableUpdate has a corresponding `_apply_table_update` dispatch function
1266+
1267+
assert len(_apply_table_update.registry) == len(TableUpdate.__origin__.__args__) # type: ignore

0 commit comments

Comments
 (0)