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

Method test_range_get_all_values

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

Source from the content-addressed store, hash-verified

93
94 @pytest.mark.vcr()
95 def test_range_get_all_values(self):
96 self.sheet.resize(4, 4)
97 rows = [
98 ["", "Hi", "Mom", ""],
99 ["My", "Name", "is", "bon"],
100 ["", "", "", ""],
101 ["1", "2", "3", "4"],
102 ]
103
104 self.sheet.update(rows, "A1:D4")
105
106 cell_range1 = self.sheet.range()
107 cell_range2 = self.sheet.range("A1:D4")
108
109 tuples1 = [(c.row, c.col, c.value) for c in cell_range1]
110 tuples2 = [(c.row, c.col, c.value) for c in cell_range2]
111
112 self.assertSequenceEqual(tuples1, tuples2)
113
114 @pytest.mark.vcr()
115 def test_get_returns_ValueRange_with_metadata(self):

Callers

nothing calls this directly

Calls 3

resizeMethod · 0.80
updateMethod · 0.80
rangeMethod · 0.45

Tested by

no test coverage detected