Skip to content

Commit

Permalink
Fix test for sqlalchemy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Nov 14, 2024
1 parent 2c68a97 commit 7b78383
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_sqlcommenter_enabled_matches_db_statement_attribute(self):
commenter_options={"db_framework": False},
)
cnx = engine.connect()
cnx.execute("SELECT 1;").fetchall()
cnx.execute(text("SELECT 1;")).fetchall()
query_log = self.caplog.records[-2].getMessage()
self.assertRegex(
query_log,
Expand Down

0 comments on commit 7b78383

Please sign in to comment.