File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1210,6 +1210,9 @@ def test_update_metadata_log_overflow(table_v2: Table) -> None:
1210
1210
1211
1211
def test_table_update_have_corresponding_dispatch () -> None :
1212
1212
from pyiceberg .table import TableUpdate , _apply_table_update
1213
- # every TableUpdate should have a corresponding `_apply_table_update` dispatch function
1214
1213
1215
- assert len (_apply_table_update .registry ) == len (TableUpdate .__origin__ .__args__ ) # type: ignore
1214
+ # every TableUpdate class should have corresponding `_apply_table_update` dispatch function
1215
+ table_update_class = set (TableUpdate .__origin__ .__args__ ) # type: ignore
1216
+ dispatch_function_class = set (_apply_table_update .registry .keys ())
1217
+ missing_dispatch_function = table_update_class - dispatch_function_class
1218
+ assert len (missing_dispatch_function ) == 0 , f"Missing dispatch function for { missing_dispatch_function } "
You can’t perform that action at this time.
0 commit comments