Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Aug 7, 2024
1 parent 255e527 commit 19fbf98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/table/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,3 +1206,10 @@ def test_update_metadata_log_overflow(table_v2: Table) -> None:
table_v2.metadata_location,
)
assert len(new_metadata.metadata_log) == 1


def test_table_update_have_corresponding_dispatch() -> None:
from pyiceberg.table import TableUpdate, _apply_table_update
# every TableUpdate should have a corresponding `_apply_table_update` dispatch function

assert len(_apply_table_update.registry) == len(TableUpdate.__origin__.__args__) # type: ignore

0 comments on commit 19fbf98

Please sign in to comment.