We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c149d commit 2a0aa31Copy full SHA for 2a0aa31
1 file changed
tests/test_odm2/test_odm2.py
@@ -53,6 +53,16 @@ def setup( request):
53
session_factory.getSession().execute(line)
54
55
print 'database initialization completed successfully'
56
+
57
+ def fin():
58
+ print ("teardown odm2 test connection")
59
+ del dbConn.odmread
60
+ del dbConn.odmcreate
61
+ del dbConn.odmupdate
62
+ del dbConn.odmdelete
63
64
+ request.addfinalizer(fin)
65
66
return dbConn
67
68
@pytest.mark.skipif(True, reason="Enable for testing: CreateService Session closes on failed create #52")
0 commit comments