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

Method test_batch_update

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

Source from the content-addressed store, hash-verified

1504
1505 @pytest.mark.vcr()
1506 def test_batch_update(self):
1507 self.sheet.batch_update(
1508 [
1509 {
1510 "range": "A1:D1",
1511 "values": [["A1", "B1", "", "D1"]],
1512 },
1513 {
1514 "range": "A4:D4",
1515 "values": [["A4", "B4", "", "D4"]],
1516 },
1517 ]
1518 )
1519
1520 data = self.sheet.get("A1:D4")
1521
1522 self.assertEqual(
1523 data,
1524 [
1525 ["A1", "B1", "", "D1"],
1526 [],
1527 [],
1528 ["A4", "B4", "", "D4"],
1529 ],
1530 )
1531
1532 @pytest.mark.vcr()
1533 def test_add_protected_range_normal(self):

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
batch_updateMethod · 0.45

Tested by

no test coverage detected