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:29 UTC
[13/17] incubator-ariatosca git commit: Improve handling commands
with no arguments
Improve handling commands with no arguments
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/4da1cb9e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/4da1cb9e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/4da1cb9e
Branch: refs/heads/cli-tests
Commit: 4da1cb9e70b9bc47fe7aa14dd907bd1b0acfd9df
Parents: 530cfce
Author: Avia Efrat <av...@gigaspaces.com>
Authored: Wed Apr 5 13:57:49 2017 +0300
Committer: Avia Efrat <av...@gigaspaces.com>
Committed: Wed Apr 5 16:49:57 2017 +0300
----------------------------------------------------------------------
tests/cli/runner.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/4da1cb9e/tests/cli/runner.py
----------------------------------------------------------------------
diff --git a/tests/cli/runner.py b/tests/cli/runner.py
index d956a06..8b4294a 100644
--- a/tests/cli/runner.py
+++ b/tests/cli/runner.py
@@ -3,9 +3,10 @@ import click.testing
def invoke(command_string):
- # TODO handle verbosity later
- command, sub, args = command_string.split()
+ # TODO handle verbosity and co. later
+ command_list = command_string.split()
+ command, sub, args = command_list[0], command_list[1], command_list[2:]
runner = click.testing.CliRunner()
outcome = runner.invoke(getattr(
getattr(commands, command), sub), args)
- return outcome
\ No newline at end of file
+ return outcome