Skip to content

Commit

Permalink
wrap query with text
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatsort committed Jul 18, 2024
1 parent 34cd2c5 commit 0a16f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_sql_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import pytest
import json
from sqlalchemy import text

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

# Compare with expected results
Expand Down

0 comments on commit 0a16f5f

Please sign in to comment.