def test_update_rows_location_top(self): self.client.as_test_scenario('Update Rows - Location - Top') first_row = Row() first_row.id = 10 first_row.to_top = True response = self.client.Sheets.update_rows(1, [first_row]) assert response.result[0].row_number == 1
def test_add_rows_location_top(self): self.client.as_test_scenario('Add Rows - Location - Top') first_row = Row() first_row.to_top = True first_row.cells.append({"columnId": 101, "value": "Apple"}) first_row.cells.append({"columnId": 102, "value": "Red Fruit"}) response = self.client.Sheets.add_rows(1, [first_row]) assert response.result[0].row_number == 1