summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_cli.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-29 08:15:55 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-29 08:15:55 +0200
commit096d9ecde6390a4d2795d0347280ccb2c1517143 (patch)
tree9d8804fd6b29af0d059dc5a2ba596851ddda7f7a /gitlab/tests/test_cli.py
parent51718ea7fb566d8ebeb310520c8e6557e19152e0 (diff)
downloadgitlab-096d9ecde6390a4d2795d0347280ccb2c1517143.tar.gz
Add missing project attributes
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)