diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-29 08:15:55 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-05-29 08:15:55 +0200 |
| commit | 096d9ecde6390a4d2795d0347280ccb2c1517143 (patch) | |
| tree | 9d8804fd6b29af0d059dc5a2ba596851ddda7f7a /gitlab/tests | |
| parent | 51718ea7fb566d8ebeb310520c8e6557e19152e0 (diff) | |
| download | gitlab-096d9ecde6390a4d2795d0347280ccb2c1517143.tar.gz | |
Add missing project attributes
Diffstat (limited to 'gitlab/tests')
| -rw-r--r-- | gitlab/tests/test_cli.py | 7 |
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) |
