@@ -72,6 +72,7 @@ def test_no_tab_id_excluded(self):
7272 result = create_update_table_column_properties_request (
7373 table_start_index = 10 ,
7474 column_indices = [0 ],
75+ width = 60.0 ,
7576 )
7677 location = result ["updateTableColumnProperties" ]["tableStartLocation" ]
7778 assert "tabId" not in location
@@ -89,13 +90,12 @@ def test_structure_keys(self):
8990 assert "tableColumnProperties" in inner
9091 assert "fields" in inner
9192
92- def test_empty_fields_when_no_properties (self ):
93+ def test_returns_none_when_no_properties (self ):
9394 result = create_update_table_column_properties_request (
9495 table_start_index = 10 ,
9596 column_indices = [0 ],
9697 )
97- inner = result ["updateTableColumnProperties" ]
98- assert inner ["fields" ] == ""
98+ assert result is None
9999
100100
101101class TestValidateOperation :
@@ -173,6 +173,17 @@ async def test_end_to_end_update_table_column_properties(self, manager):
173173 assert success
174174 assert meta ["operations_count" ] == 1
175175
176+ def test_no_properties_raises_value_error (self , manager ):
177+ with pytest .raises (ValueError , match = "at least one of" ):
178+ manager ._build_operation_request (
179+ {
180+ "type" : "update_table_column_properties" ,
181+ "table_start_index" : 10 ,
182+ "column_indices" : [0 ],
183+ },
184+ "update_table_column_properties" ,
185+ )
186+
176187 def test_supported_operations_include_update_table_column_properties (self , manager ):
177188 supported = manager .get_supported_operations ()["supported_operations" ]
178189 assert "update_table_column_properties" in supported
0 commit comments