Skip to content

Commit 38307ca

Browse files
fix(sqlalchemy): format test file and bump sqlalchemy to >=2.0.36 for Python 3.14 support
1 parent 8a214a1 commit 38307ca

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

integrations/sqlalchemy/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
]
2626
dependencies = [
2727
"haystack-ai>=2.12.0",
28-
"sqlalchemy>=2.0.0",
28+
"sqlalchemy>=2.0.36",
2929
"pandas>=2.2.0",
3030
]
3131

integrations/sqlalchemy/tests/test_sqlalchemy_table_retriever.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def test_to_dict(self):
4949
)
5050
d = retriever.to_dict()
5151
expected_type = (
52-
"haystack_integrations.components.retrievers.sqlalchemy"
53-
".sqlalchemy_table_retriever.SQLAlchemyTableRetriever"
52+
"haystack_integrations.components.retrievers.sqlalchemy.sqlalchemy_table_retriever.SQLAlchemyTableRetriever"
5453
)
5554
assert d["type"] == expected_type
5655
params = d["init_parameters"]
@@ -104,10 +103,7 @@ def test_run_sql_error(self):
104103

105104
def test_max_row_limit(self, monkeypatch):
106105
init_sql = (
107-
"CREATE TABLE t (x INTEGER);"
108-
"INSERT INTO t VALUES (1);"
109-
"INSERT INTO t VALUES (2);"
110-
"INSERT INTO t VALUES (3)"
106+
"CREATE TABLE t (x INTEGER);INSERT INTO t VALUES (1);INSERT INTO t VALUES (2);INSERT INTO t VALUES (3)"
111107
)
112108
retriever = SQLAlchemyTableRetriever(
113109
drivername="sqlite",

0 commit comments

Comments
 (0)