mirror of
https://github.com/simonw/datasette.git
synced 2026-07-13 11:04:37 +02:00
Upgrade for sqlite-utils==4.0rc1
Refs https://github.com/simonw/sqlite-utils/issues/758
This commit is contained in:
parent
57e7bba38f
commit
170037df4d
2 changed files with 18 additions and 18 deletions
|
|
@ -35,7 +35,7 @@ dependencies = [
|
|||
"PyYAML>=5.3",
|
||||
"mergedeep>=1.1.1",
|
||||
"itsdangerous>=1.1",
|
||||
"sqlite-utils>=3.30",
|
||||
"sqlite-utils==4.0rc1",
|
||||
"asyncinject>=0.7",
|
||||
"setuptools",
|
||||
"pip",
|
||||
|
|
|
|||
|
|
@ -1005,12 +1005,12 @@ async def test_drop_table(ds_write, scenario):
|
|||
"table_url": "http://localhost/data/one",
|
||||
"table_api_url": "http://localhost/data/one.json",
|
||||
"schema": (
|
||||
"CREATE TABLE [one] (\n"
|
||||
" [id] INTEGER PRIMARY KEY,\n"
|
||||
" [title] TEXT,\n"
|
||||
" [score] INTEGER,\n"
|
||||
" [weight] FLOAT,\n"
|
||||
" [thumbnail] BLOB\n"
|
||||
'CREATE TABLE "one" (\n'
|
||||
' "id" INTEGER PRIMARY KEY,\n'
|
||||
' "title" TEXT,\n'
|
||||
' "score" INTEGER,\n'
|
||||
' "weight" REAL,\n'
|
||||
' "thumbnail" BLOB\n'
|
||||
")"
|
||||
),
|
||||
},
|
||||
|
|
@ -1042,10 +1042,10 @@ async def test_drop_table(ds_write, scenario):
|
|||
"table_url": "http://localhost/data/two",
|
||||
"table_api_url": "http://localhost/data/two.json",
|
||||
"schema": (
|
||||
"CREATE TABLE [two] (\n"
|
||||
" [id] INTEGER PRIMARY KEY,\n"
|
||||
" [title] TEXT,\n"
|
||||
" [score] FLOAT\n"
|
||||
'CREATE TABLE "two" (\n'
|
||||
' "id" INTEGER PRIMARY KEY,\n'
|
||||
' "title" TEXT,\n'
|
||||
' "score" REAL\n'
|
||||
")"
|
||||
),
|
||||
"row_count": 2,
|
||||
|
|
@ -1071,10 +1071,10 @@ async def test_drop_table(ds_write, scenario):
|
|||
"table_url": "http://localhost/data/three",
|
||||
"table_api_url": "http://localhost/data/three.json",
|
||||
"schema": (
|
||||
"CREATE TABLE [three] (\n"
|
||||
" [id] INTEGER PRIMARY KEY,\n"
|
||||
" [title] TEXT,\n"
|
||||
" [score] FLOAT\n"
|
||||
'CREATE TABLE "three" (\n'
|
||||
' "id" INTEGER PRIMARY KEY,\n'
|
||||
' "title" TEXT,\n'
|
||||
' "score" REAL\n'
|
||||
")"
|
||||
),
|
||||
"row_count": 1,
|
||||
|
|
@ -1096,7 +1096,7 @@ async def test_drop_table(ds_write, scenario):
|
|||
"table": "four",
|
||||
"table_url": "http://localhost/data/four",
|
||||
"table_api_url": "http://localhost/data/four.json",
|
||||
"schema": ("CREATE TABLE [four] (\n" " [name] TEXT\n" ")"),
|
||||
"schema": ('CREATE TABLE "four" (\n' ' "name" TEXT\n' ")"),
|
||||
"row_count": 1,
|
||||
},
|
||||
["create-table", "insert-rows"],
|
||||
|
|
@ -1116,8 +1116,8 @@ async def test_drop_table(ds_write, scenario):
|
|||
"table_url": "http://localhost/data/five",
|
||||
"table_api_url": "http://localhost/data/five.json",
|
||||
"schema": (
|
||||
"CREATE TABLE [five] (\n [type] TEXT,\n [key] INTEGER,\n"
|
||||
" [title] TEXT,\n PRIMARY KEY ([type], [key])\n)"
|
||||
'CREATE TABLE "five" (\n "type" TEXT,\n "key" INTEGER,\n'
|
||||
' "title" TEXT,\n PRIMARY KEY ("type", "key")\n)'
|
||||
),
|
||||
"row_count": 1,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue