Beispiel #1
0
 def test_apply_column_formatter(self):
     s = FormattableSheet(self.data)
     s.apply_formatter(ColumnFormatter(0, float))
     assert s.column[0] == [1, 1, 1.1, 1.1, 2, 2]
Beispiel #2
0
 def test_apply_sheet_formatter(self):
     s = FormattableSheet(self.data)
     s.apply_formatter(SheetFormatter(float))
     assert s.row[0] == s.row[1]
     assert s.column[0] == [1, 1, 1.1, 1.1, 2, 2]
Beispiel #3
0
 def test_apply_row_formatter(self):
     s = FormattableSheet(self.data)
     s.apply_formatter(RowFormatter(0, str))
     assert s.row[0] == s.row[1]