mirror of
https://github.com/simonw/datasette.git
synced 2026-06-05 08:37:00 +02:00
{"ok": true} on row API, to be consistent with table
This commit is contained in:
parent
4cbdfcc07d
commit
3b4c7e1abe
2 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ class RowView(DataView):
|
|||
}
|
||||
|
||||
data = {
|
||||
"ok": True,
|
||||
"database": database,
|
||||
"table": table,
|
||||
"rows": rows,
|
||||
|
|
|
|||
|
|
@ -710,6 +710,7 @@ async def test_invalid_custom_sql(ds_client):
|
|||
async def test_row(ds_client):
|
||||
response = await ds_client.get("/fixtures/simple_primary_key/1.json?_shape=objects")
|
||||
assert response.status_code == 200
|
||||
assert response.json()["ok"] is True
|
||||
assert response.json()["rows"] == [{"id": 1, "content": "hello"}]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue