@@ -2603,26 +2603,20 @@ def test_read_types(self):
26032603 tm .assert_equal (sheet , expected )
26042604
26052605 def test_read_invalid_types_raises (self ):
2606- """Make sure we throw an exception when encountering a new value-type
2607-
2608- I had to manually create an invalid ods file by directly
2609- editing the extracted xml. So it probably won't open in
2610- LibreOffice correctly.
2611- """
2606+ # the invalid_value_type.ods required manually editing
2607+ # of the included content.xml file
26122608 with pytest .raises (ValueError ,
26132609 match = "Unrecognized type awesome_new_type" ):
26142610 self .get_exceldf (
26152611 'invalid_value_type' , '.ods' , header = None , engine = 'odf' )
26162612
26172613 def test_read_lower_diagonal (self ):
2618- """TextParser failed when given an irregular list of lists
2614+ # Make sure we can parse:
2615+ # 1
2616+ # 2 3
2617+ # 4 5 6
2618+ # 7 8 9 10
26192619
2620- Make sure we can parse:
2621- 1
2622- 2 3
2623- 4 5 6
2624- 7 8 9 10
2625- """
26262620 sheet = self .get_exceldf (
26272621 'lowerdiagonal' , '.ods' , 'Sheet1' ,
26282622 index_col = None , header = None , engine = 'odf' )
@@ -2650,10 +2644,9 @@ def test_read_headers(self):
26502644 assert pd .isnull (value )
26512645
26522646 def test_read_writer_table (self ):
2653- """ODF reuses the same table tags in Writer and Presentation files
2647+ # Also test reading tables from an text OpenDocument file
2648+ # (.odt)
26542649
2655- Test reading a table out of a text document
2656- """
26572650 table = self .get_exceldf (
26582651 'writertable' , '.odt' , 'Table1' , index_col = 0 , engine = 'odf' )
26592652
@@ -2681,8 +2674,6 @@ def test_blank_row_repeat(self):
26812674 assert not pd .isnull (table ['value' ][11 ])
26822675
26832676 def test_runlengthencoding (self ):
2684- """Calc will use repeat when adjacent columns have the same value.
2685- """
26862677 sheet = self .get_exceldf (
26872678 'runlengthencoding' , '.ods' , 'Sheet1' , header = None , engine = 'odf' )
26882679 assert sheet .shape == (5 , 3 )
0 commit comments