ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm...@apache.org
Subject [02/12] incubator-ariatosca git commit: ARIA-127 Make use of in-memory sqlite more robust
Date Mon, 17 Apr 2017 15:50:40 GMT
ARIA-127 Make use of in-memory sqlite more robust


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/8e1d059f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/8e1d059f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/8e1d059f

Branch: refs/heads/ARIA-138-Make-logging-more-informative
Commit: 8e1d059f9747327b4036b98c1f842d3f05c6c5f0
Parents: 3dadc9f
Author: Tal Liron <tal.liron@gmail.com>
Authored: Tue Apr 11 18:19:38 2017 -0500
Committer: Tal Liron <tal.liron@gmail.com>
Committed: Thu Apr 13 10:56:31 2017 -0500

----------------------------------------------------------------------
 tests/storage/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/8e1d059f/tests/storage/__init__.py
----------------------------------------------------------------------
diff --git a/tests/storage/__init__.py b/tests/storage/__init__.py
index c5d7678..66424db 100644
--- a/tests/storage/__init__.py
+++ b/tests/storage/__init__.py
@@ -51,6 +51,6 @@ def init_inmemory_model_storage():
 
     engine = create_engine(uri, **engine_kwargs)
     session_factory = orm.sessionmaker(bind=engine)
-    session = session_factory()
+    session = orm.scoped_session(session_factory=session_factory)
 
     return dict(engine=engine, session=session)


Mime
View raw message