mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
simple_primary_key now uses integer id, helps close #2458
This commit is contained in:
parent
d48e5ae0ce
commit
4dff846271
7 changed files with 72 additions and 60 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue