Skip to content

Commit 0a16f5f

Browse files
committed
wrap query with text
1 parent 34cd2c5 commit 0a16f5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_sql_logic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import pytest
55
import json
6+
from sqlalchemy import text
67

78
@pytest.fixture(scope='module')
89
def expected_results():
@@ -29,7 +30,7 @@ def run_query_test(db_connection, expected_results, query_name, sql_file):
2930
This function is called by the individual test functions to perform the shared logic.
3031
"""
3132
query_sql = load_sql_query(sql_file)
32-
results = db_connection.execute(query_sql)
33+
results = db_connection.execute(text(query_sql))
3334
results_dict = fetch_results_as_dict(results)
3435

3536
# Compare with expected results

0 commit comments

Comments
 (0)