gspread icon indicating copy to clipboard operation
gspread copied to clipboard

Implement update_named_range method

Open brianjmurrell opened this issue 1 month ago • 1 comments

Add method to update named ranges in a spreadsheet.

Fixes #1573

brianjmurrell avatar Nov 23 '25 21:11 brianjmurrell

I'm out of my depth here with the pytest lint_python / lint_python error here:

==================================== ERRORS ====================================
___________________ ERROR collecting tests/worksheet_test.py ___________________
tests/worksheet_test.py:21: in <module>
    class WorksheetTest(GspreadTest):
tests/worksheet_test.py:39: in WorksheetTest
    @pytest.fixture(autouse=True)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py/lib/python3.14/site-packages/_pytest/fixtures.py:1239: in __call__
    warnings.warn(MARKED_FIXTURE, stacklevel=2)
E   pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
E   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
=========================== short test summary info ============================
ERROR tests/worksheet_test.py - pytest.PytestRemovedIn9Warning: Marks applied...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.38s ===============================
py: exit 2 (1.37 seconds) /home/runner/work/gspread/gspread> pytest tests/ pid=2591
.pkg: _exit> python /opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/pyproject_api/_backend.py True flit_core.buildapi
  py: FAIL code 2 (9.91=setup[8.53]+cmd[1.37] seconds)
  evaluation failed :( (9.96 seconds)

but regardless it doesn't seem related to my change here.

brianjmurrell avatar Nov 25 '25 22:11 brianjmurrell