summaryrefslogtreecommitdiff
path: root/tests/functional/cli
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-28 00:50:49 +0100
committerJohn Villalovos <john@sodarock.com>2022-05-29 16:56:36 -0700
commitdf072e130aa145a368bbdd10be98208a25100f89 (patch)
treed52fc1a500bc510a76bea8dba4d7b304a66b83df /tests/functional/cli
parentc51b538caae0a94d936d94d6da60c362492f9403 (diff)
downloadgitlab-df072e130aa145a368bbdd10be98208a25100f89.tar.gz
test(gitlab): increase unit test coverage
Diffstat (limited to 'tests/functional/cli')
-rw-r--r--tests/functional/cli/test_cli.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/cli/test_cli.py b/tests/functional/cli/test_cli.py
index a889066..0da50e6 100644
--- a/tests/functional/cli/test_cli.py
+++ b/tests/functional/cli/test_cli.py
@@ -27,6 +27,12 @@ def test_version(script_runner):
assert ret.stdout.strip() == __version__
+def test_config_error_with_help_prints_help(script_runner):
+ ret = script_runner.run("gitlab", "-c", "invalid-file", "--help")
+ assert ret.stdout.startswith("usage:")
+ assert ret.returncode == 0
+
+
@pytest.mark.script_launch_mode("inprocess")
@responses.activate
def test_defaults_to_gitlab_com(script_runner, resp_get_project, monkeypatch):