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

Method test_range

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

Source from the content-addressed store, hash-verified

63
64 @pytest.mark.vcr()
65 def test_range(self):
66 cell_range1 = self.sheet.range("A1:A5")
67 cell_range2 = self.sheet.range(1, 1, 5, 1)
68
69 self.assertEqual(len(cell_range1), 5)
70
71 for c1, c2 in zip(cell_range1, cell_range2):
72 self.assertIsInstance(c1, gspread.cell.Cell)
73 self.assertIsInstance(c2, gspread.cell.Cell)
74 self.assertTrue(c1.col == c2.col)
75 self.assertTrue(c1.row == c2.row)
76 self.assertTrue(c1.value == c2.value)
77
78 @pytest.mark.vcr()
79 def test_range_unbounded(self):

Callers

nothing calls this directly

Calls 1

rangeMethod · 0.45

Tested by

no test coverage detected