You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by ra...@apache.org on 2017/04/13 13:59:43 UTC
incubator-ariatosca git commit: fixed pylint issues in tests
Repository: incubator-ariatosca
Updated Branches:
refs/heads/ARIA-48-aria-cli 7f81c4236 -> 207cc093c
fixed pylint issues in tests
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/207cc093
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/207cc093
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/207cc093
Branch: refs/heads/ARIA-48-aria-cli
Commit: 207cc093c6fe66fd9b1692a91f365fce1c72154a
Parents: 7f81c42
Author: Ran Ziv <ra...@gigaspaces.com>
Authored: Thu Apr 13 14:47:18 2017 +0300
Committer: Ran Ziv <ra...@gigaspaces.com>
Committed: Thu Apr 13 14:47:18 2017 +0300
----------------------------------------------------------------------
tests/cli/__init__.py | 2 +-
tests/cli/base_test.py | 1 -
tests/orchestrator/test_workflow_runner.py | 3 +--
3 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/207cc093/tests/cli/__init__.py
----------------------------------------------------------------------
diff --git a/tests/cli/__init__.py b/tests/cli/__init__.py
index 13878a1..ae1e83e 100644
--- a/tests/cli/__init__.py
+++ b/tests/cli/__init__.py
@@ -11,4 +11,4 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
-# limitations under the License.
\ No newline at end of file
+# limitations under the License.
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/207cc093/tests/cli/base_test.py
----------------------------------------------------------------------
diff --git a/tests/cli/base_test.py b/tests/cli/base_test.py
index 783631b..55da476 100644
--- a/tests/cli/base_test.py
+++ b/tests/cli/base_test.py
@@ -55,4 +55,3 @@ def get_default_logger_config():
_default_logger_config = get_default_logger_config()
-
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/207cc093/tests/orchestrator/test_workflow_runner.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/test_workflow_runner.py b/tests/orchestrator/test_workflow_runner.py
index aa89ac5..54e940f 100644
--- a/tests/orchestrator/test_workflow_runner.py
+++ b/tests/orchestrator/test_workflow_runner.py
@@ -174,11 +174,10 @@ def test_execution_inputs_override_workflow_inputs(request):
inputs=dict((name, models.Parameter.wrap(name, val)) for name, val
in wf_inputs.iteritems()))
- with mock.patch('aria.orchestrator.workflow_runner.Engine') as mock_engine_cls:
+ with mock.patch('aria.orchestrator.workflow_runner.Engine'):
workflow_runner = _create_workflow_runner(
request, mock_workflow, inputs={'input2': 'overriding-value2', 'input3': 7})
- _, engine_kwargs = mock_engine_cls.call_args
assert len(workflow_runner.execution.inputs) == 3
# did not override input1 - expecting the default value from the workflow inputs
assert workflow_runner.execution.inputs['input1'].value == 'value1'