summaryrefslogtreecommitdiff
path: root/tests/functional/cli/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/cli/test_cli.py')
-rw-r--r--tests/functional/cli/test_cli.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional/cli/test_cli.py b/tests/functional/cli/test_cli.py
index f07fa2a..6edea7f 100644
--- a/tests/functional/cli/test_cli.py
+++ b/tests/functional/cli/test_cli.py
@@ -34,6 +34,18 @@ def test_config_error_with_help_prints_help(script_runner):
assert ret.returncode == 0
+def test_global_help_prints_resources_vertically(script_runner):
+ ret = script_runner.run("gitlab", "--help")
+ assert """resource:\n application\n application-appearance\n""" in ret.stdout
+ assert ret.returncode == 0
+
+
+def test_resource_help_prints_actions_vertically(script_runner):
+ ret = script_runner.run("gitlab", "project", "--help")
+ assert """action:\n list\n get""" in ret.stdout
+ assert ret.returncode == 0
+
+
@pytest.mark.script_launch_mode("inprocess")
@responses.activate
def test_defaults_to_gitlab_com(script_runner, resp_get_project, monkeypatch):