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/16 19:05:49 UTC

incubator-ariatosca git commit: fixed MockCtx

Repository: incubator-ariatosca
Updated Branches:
  refs/heads/runtime_props_to_attr 6a742d2ee -> 6e563337b


fixed MockCtx


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

Branch: refs/heads/runtime_props_to_attr
Commit: 6e563337bbab4d411f0720bd181303b9983fbb72
Parents: 6a742d2
Author: max-orlov <ma...@gigaspaces.com>
Authored: Tue May 16 22:05:44 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Tue May 16 22:05:44 2017 +0300

----------------------------------------------------------------------
 tests/orchestrator/execution_plugin/test_ctx_proxy_server.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/6e563337/tests/orchestrator/execution_plugin/test_ctx_proxy_server.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/execution_plugin/test_ctx_proxy_server.py b/tests/orchestrator/execution_plugin/test_ctx_proxy_server.py
index 98ceff9..a41f9f0 100644
--- a/tests/orchestrator/execution_plugin/test_ctx_proxy_server.py
+++ b/tests/orchestrator/execution_plugin/test_ctx_proxy_server.py
@@ -136,7 +136,7 @@ class TestCtxProxy(object):
             kwargs=kwargs)
 
     @pytest.fixture
-    def ctx(self):
+    def ctx(self, mocker):
         class MockCtx(object):
             pass
         ctx = MockCtx()
@@ -160,6 +160,7 @@ class TestCtxProxy(object):
         ctx.stub_args = self.stub_args
         ctx.stub_attr = self.StubAttribute()
         ctx.node = self.NodeAttribute(properties)
+        ctx.model = mocker.MagicMock()
         return ctx
 
     @pytest.fixture