Skip to content

Commit aa288d8

Browse files
authored
Bump sqlite-utils to 2.9.1, update tests
Also closes #22
1 parent eca96b3 commit aa288d8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import os
44

5-
VERSION = "1.1.1"
5+
VERSION = "1.2"
66

77

88
def get_long_description():
@@ -22,7 +22,7 @@ def get_long_description():
2222
version=VERSION,
2323
license="Apache License, Version 2.0",
2424
packages=find_packages(),
25-
install_requires=["sqlalchemy", "sqlite-utils~=2.3.1", "click"],
25+
install_requires=["sqlalchemy", "sqlite-utils~=2.9.1", "click"],
2626
extras_require={
2727
"test": ["pytest"],
2828
"test_mysql": ["pytest", "mysqlclient"],

tests/test_db_to_sqlite.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ def test_db_to_sqlite(connection, tmpdir, cli_runner):
1111
db = sqlite_utils.Database(db_path)
1212
assert {"categories", "products", "vendors"} == set(db.table_names())
1313
assert [
14-
# Slight oddity: vendor_id comes out as a string even though MySQL
15-
# defined it as an integer because sqlite-utils treats mixed
16-
# integer + null as a string type, not an integer type
17-
{"id": 1, "name": "Bobcat Statue", "cat_id": 1, "vendor_id": "1"},
14+
{"id": 1, "name": "Bobcat Statue", "cat_id": 1, "vendor_id": 1},
1815
{"id": 2, "name": "Yoga Scarf", "cat_id": 1, "vendor_id": None},
1916
] == list(db["products"].rows)
2017
assert [{"id": 1, "name": "Junk"}] == list(db["categories"].rows)

0 commit comments

Comments
 (0)