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

@ -99,7 +99,19 @@ async def test_table_csv_with_nullable_labels(ds_client):
@pytest.mark.asyncio
async def test_table_csv_with_invalid_labels():
# https://github.com/simonw/datasette/issues/2214
ds = Datasette()
ds = Datasette(
config={
"databases": {
"db_2214": {
"tables": {
"t2": {
"label_column": "name",
}
}
}
}
}
)
await ds.invoke_startup()
db = ds.add_memory_database("db_2214")
await db.execute_write_script(