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

Method test_update_cell

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

Source from the content-addressed store, hash-verified

420
421 @pytest.mark.vcr()
422 def test_update_cell(self):
423 sg = self._sequence_generator()
424 value = next(sg)
425
426 self.sheet.update_cell(1, 2, value)
427 self.assertEqual(self.sheet.cell(1, 2).value, value)
428
429 self.sheet.update_cell(1, 2, 42)
430 self.assertEqual(self.sheet.cell(1, 2).value, "42")
431
432 self.sheet.update_cell(1, 2, "0042")
433 self.assertEqual(self.sheet.cell(1, 2).value, "42")
434
435 self.sheet.update_cell(1, 2, 42.01)
436 self.assertEqual(self.sheet.cell(1, 2).value, "42.01")
437
438 self.sheet.update_cell(1, 2, "Артур")
439 self.assertEqual(self.sheet.cell(1, 2).value, "Артур")
440
441 @pytest.mark.vcr()
442 def test_update_cell_multiline(self):

Callers

nothing calls this directly

Calls 3

_sequence_generatorMethod · 0.80
update_cellMethod · 0.80
cellMethod · 0.80

Tested by

no test coverage detected