Skip to content

Commit

Permalink
Require sqlite-utils>=3.10, closes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jul 1, 2022
1 parent 957e1b5 commit bdf82b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_long_description():
entry_points={"datasette": ["edit_schema = datasette_edit_schema"]},
install_requires=[
"datasette>=0.59",
"sqlite-utils>=2.21",
"sqlite-utils>=3.10",
],
extras_require={"test": ["pytest", "pytest-asyncio"]},
package_data={"datasette_edit_schema": ["templates/*.html", "static/*.js"]},
Expand Down
16 changes: 8 additions & 8 deletions tests/test_edit_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,33 +173,33 @@ async def test_add_column_errors(db_path, name, type, expected_error):
{
"type.name": "REAL",
},
{"rowid": int, "name": float, "description": str},
["rowid", "name", "description"],
{"name": float, "description": str},
["name", "description"],
),
(
{
"type.name": "INTEGER",
},
{"rowid": int, "name": int, "description": str},
["rowid", "name", "description"],
{"name": int, "description": str},
["name", "description"],
),
# Changing order
(
{
"sort.description": "0",
"sort.name": "2",
},
{"rowid": int, "name": str, "description": str},
["rowid", "description", "name"],
{"name": str, "description": str},
["description", "name"],
),
# Change names
(
{
"name.name": "name2",
"name.description": "description2",
},
{"rowid": int, "name2": str, "description2": str},
["rowid", "name2", "description2"],
{"name2": str, "description2": str},
["name2", "description2"],
),
],
)
Expand Down

0 comments on commit bdf82b1

Please sign in to comment.