summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/tests/test_cli.py')
-rw-r--r--gitlab/tests/test_cli.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/tests/test_cli.py b/gitlab/tests/test_cli.py
index 034beed..3c148f8 100644
--- a/gitlab/tests/test_cli.py
+++ b/gitlab/tests/test_cli.py
@@ -118,4 +118,11 @@ class TestV4CLI(unittest.TestCase):
actions = user_subparsers.choices['create']._option_string_actions
self.assertFalse(actions['--description'].required)
+
+ user_subparsers = None
+ for action in subparsers.choices['group']._actions:
+ if type(action) == argparse._SubParsersAction:
+ user_subparsers = action
+ break
+ actions = user_subparsers.choices['create']._option_string_actions
self.assertTrue(actions['--name'].required)