simple_primary_key now uses integer id, helps close #2458

This commit is contained in:
Simon Willison 2025-02-01 21:42:49 -08:00
commit 4dff846271
7 changed files with 72 additions and 60 deletions

View file

@ -708,7 +708,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()["rows"] == [{"id": "1", "content": "hello"}]
assert response.json()["rows"] == [{"id": 1, "content": "hello"}]
@pytest.mark.asyncio