def test_apply_column_formatter(self): s = Sheet(self.data) s.apply_formatter(ColumnFormatter(0, float)) assert s.column[0] == [1, 1, 1.1, 1.1, 2, 2]
def test_apply_sheet_formatter(self): s = Sheet(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]
def test_apply_row_formatter(self): s = Sheet(self.data) s.apply_formatter(RowFormatter(0, str)) assert s.row[0] == s.row[1]