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

Method test_append_row_with_empty_value

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

Source from the content-addressed store, hash-verified

1296
1297 @pytest.mark.vcr()
1298 def test_append_row_with_empty_value(self):
1299 sg = self._sequence_generator()
1300 value_list = [next(sg) for i in range(3)]
1301 value_list[1] = "" # Skip one cell to create two "tables" as in #537
1302 self.sheet.append_row(value_list)
1303 # Append it again
1304 self.sheet.append_row(value_list)
1305 # This should produce a shift in rows as in #537
1306 shifted_value_list = ["", ""] + value_list
1307 read_values = self.sheet.row_values(2)
1308 self.assertEqual(shifted_value_list, read_values)
1309
1310 @pytest.mark.vcr()
1311 def test_append_row_with_empty_value_and_table_range(self):

Callers

nothing calls this directly

Calls 3

_sequence_generatorMethod · 0.80
append_rowMethod · 0.80
row_valuesMethod · 0.80

Tested by

no test coverage detected