mirror of
https://github.com/simonw/datasette.git
synced 2026-07-09 17:14:35 +02:00
Row update return:true responds with rows list, matching insert/upsert
Row update previously returned a singular "row" object where insert and upsert return a "rows" list. All write endpoints now use "rows". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
6488b7a30e
commit
b09dceea88
7 changed files with 40 additions and 13 deletions
|
|
@ -1481,9 +1481,9 @@ async def test_update_row(ds_write, input, expected_errors, use_return):
|
|||
|
||||
assert response.json()["ok"] is True
|
||||
if not use_return:
|
||||
assert "row" not in response.json()
|
||||
assert "rows" not in response.json()
|
||||
else:
|
||||
returned_row = response.json()["row"]
|
||||
returned_row = response.json()["rows"][0]
|
||||
assert returned_row["id"] == pk
|
||||
for k, v in input.items():
|
||||
assert returned_row[k] == v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue