Skip to content

Commit 1d6db25

Browse files
committed
Dispose the engine after closing the connection
1 parent 66140b0 commit 1d6db25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ def db_connection():
1414
connection = engine.connect()
1515
yield connection
1616
connection.close()
17+
engine.dispose() # Dispose the engine after closing the connection

0 commit comments

Comments
 (0)