@@ -427,6 +427,30 @@ def test_read_excel_with_style_header_arg_none(self):
427427 for row_in_excel , row_in_self in zip (rows_in_excel [1 :], rows_in_self )
428428 for excel_cell , self_cell in zip (row_in_excel [1 :], row_in_self [1 :])))
429429
430+ def test_read_excel_rows_height (self ):
431+ self .sf .set_row_height (rows = 1 , height = 25 )
432+ self .sf .set_row_height (rows = 2 , height = 15 )
433+ self .export_and_get_default_sheet (save = True )
434+ sf_from_excel = StyleFrame .read_excel (TEST_FILENAME , read_style = True )
435+
436+ # Assert the number of rows with height is the length of our data plus 1 for headers row
437+ self .assertEqual (len (sf_from_excel ._rows_height ), len (self .sf ) + 1 )
438+ self .assertEqual (sf_from_excel ._rows_height [1 ], 25 )
439+ self .assertEqual (sf_from_excel ._rows_height [2 ], 15 )
440+ self .assertEqual (sf_from_excel ._rows_height [3 ], None )
441+ self .assertEqual (sf_from_excel ._rows_height [4 ], None )
442+
443+ def test_read_excel_columns_width (self ):
444+ self .sf .set_column_width (columns = 'a' , width = 25 )
445+ self .sf .set_column_width (columns = 'b' , width = 15 )
446+ self .export_and_get_default_sheet (save = True )
447+ sf_from_excel = StyleFrame .read_excel (TEST_FILENAME , read_style = True )
448+
449+ # Assert the number of rows with height is the length of our data plus 1 for headers row
450+ self .assertEqual (len (sf_from_excel ._columns_width ), len (self .sf .columns ))
451+ self .assertEqual (sf_from_excel ._columns_width ['a' ], 25 )
452+ self .assertEqual (sf_from_excel ._columns_width ['b' ], 15 )
453+
430454 def test_read_excel_template_equal_boundaries (self ):
431455 template_sf = StyleFrame (
432456 obj = {
0 commit comments