MCPcopy
hub / github.com/burnash/gspread / test_update_cell_objects

Method test_update_cell_objects

tests/worksheet_test.py:610–623  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

608
609 @pytest.mark.vcr()
610 def test_update_cell_objects(self):
611 test_values = ["cell row 1, col 2", "cell row 2 col 1"]
612
613 cell_list = [
614 gspread.cell.Cell(1, 2, test_values[0]),
615 gspread.cell.Cell(2, 1, test_values[1]),
616 ]
617 self.sheet.update_cells(cell_list)
618
619 # Re-fetch cells
620 cell_list = (self.sheet.cell(1, 2), self.sheet.cell(2, 1))
621 read_values = [c.value for c in cell_list]
622
623 self.assertEqual(test_values, read_values)
624
625 @pytest.mark.vcr()
626 def test_resize(self):

Callers

nothing calls this directly

Calls 2

update_cellsMethod · 0.80
cellMethod · 0.80

Tested by

no test coverage detected