You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by mx...@apache.org on 2017/05/09 10:25:54 UTC
incubator-ariatosca git commit: reverd back to inmemory and fix
inmemory
Repository: incubator-ariatosca
Updated Branches:
refs/heads/ARIA-160-Tests-fail-spordically-over-parameter-binding b8c7b9d9c -> eaf8af3f5
reverd back to inmemory and fix inmemory
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/eaf8af3f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/eaf8af3f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/eaf8af3f
Branch: refs/heads/ARIA-160-Tests-fail-spordically-over-parameter-binding
Commit: eaf8af3f55a8af767876a917eb22c364573be46d
Parents: b8c7b9d
Author: max-orlov <ma...@gigaspaces.com>
Authored: Tue May 9 13:25:49 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Tue May 9 13:25:49 2017 +0300
----------------------------------------------------------------------
tests/orchestrator/context/test_toolbelt.py | 2 +-
tests/storage/__init__.py | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/eaf8af3f/tests/orchestrator/context/test_toolbelt.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/context/test_toolbelt.py b/tests/orchestrator/context/test_toolbelt.py
index d199954..e5d09aa 100644
--- a/tests/orchestrator/context/test_toolbelt.py
+++ b/tests/orchestrator/context/test_toolbelt.py
@@ -33,7 +33,7 @@ from . import (
@pytest.fixture
def workflow_context(tmpdir):
- context = mock.context.simple(str(tmpdir))
+ context = mock.context.simple(str(tmpdir), inmemory=True)
yield context
storage.release_sqlite_storage(context.model)
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/eaf8af3f/tests/storage/__init__.py
----------------------------------------------------------------------
diff --git a/tests/storage/__init__.py b/tests/storage/__init__.py
index 66424db..8ca1480 100644
--- a/tests/storage/__init__.py
+++ b/tests/storage/__init__.py
@@ -51,6 +51,5 @@ def init_inmemory_model_storage():
engine = create_engine(uri, **engine_kwargs)
session_factory = orm.sessionmaker(bind=engine)
- session = orm.scoped_session(session_factory=session_factory)
- return dict(engine=engine, session=session)
+ return dict(engine=engine, session=session_factory())