Skip to content

Commit

Permalink
bind the engine to the session for sqlalchemy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBresson committed Nov 26, 2024
1 parent 1bd216e commit 35352d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_dialect():
registry.register("iotdb", "iotdb.sqlalchemy.IoTDBDialect", "IoTDBDialect")
eng = create_engine(url)

with Session(engine=eng) as session:
with Session(eng) as session:
session.execute("create database root.cursor")
session.execute("create database root.cursor_s1")
session.execute(
Expand Down

0 comments on commit 35352d9

Please sign in to comment.