You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by av...@apache.org on 2017/04/05 13:58:20 UTC
[04/17] incubator-ariatosca git commit: Fix runner invoke command
Fix runner invoke command
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/bd2904e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/bd2904e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/bd2904e6
Branch: refs/heads/cli-tests
Commit: bd2904e6e42fbcb58489522d14888a8004480255
Parents: 5e20196
Author: Avia Efrat <av...@gigaspaces.com>
Authored: Wed Apr 5 11:30:49 2017 +0300
Committer: Avia Efrat <av...@gigaspaces.com>
Committed: Wed Apr 5 16:49:57 2017 +0300
----------------------------------------------------------------------
tests/cli/runner.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/bd2904e6/tests/cli/runner.py
----------------------------------------------------------------------
diff --git a/tests/cli/runner.py b/tests/cli/runner.py
index 26af20a..d956a06 100644
--- a/tests/cli/runner.py
+++ b/tests/cli/runner.py
@@ -2,10 +2,9 @@ import aria.cli.commands as commands
import click.testing
-def invoke(command):
+def invoke(command_string):
# TODO handle verbosity later
- command_string = ['service_templates', 'show', '1']
- command, sub, args = command_string[0], command_string[1], command_string[2:]
+ command, sub, args = command_string.split()
runner = click.testing.CliRunner()
outcome = runner.invoke(getattr(
getattr(commands, command), sub), args)