def test_fill_rows(self, Worksheet, row, column, coordinate): ws = Worksheet(Workbook()) ws['A1'] = 'first' ws['C9'] = 'last' assert ws.calculate_dimension() == 'A1:C9' rows = ws.iter_rows() first_row = next(islice(rows, row - 1, row)) assert first_row[column].coordinate == coordinate
def test_worksheet_dimension(self, Worksheet): ws = Worksheet(Workbook()) assert 'A1:A1' == ws.calculate_dimension() ws['B12'].value = 'AAA' assert 'B12:B12' == ws.calculate_dimension()