summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-03-07 12:04:06 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-05-15 12:15:38 +0200
commit8cf5031a2caf2f39ce920c5f80316cc774ba7a36 (patch)
treeb59ef4a6cffad5b3a904d49d87802d0e3ca765ae
parent42520705a97289ac895a6b110d34d6c115e45500 (diff)
downloadgitlab-8cf5031a2caf2f39ce920c5f80316cc774ba7a36.tar.gz
test(cli): add more real class scenarios
-rw-r--r--gitlab/tests/test_cli.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gitlab/tests/test_cli.py b/gitlab/tests/test_cli.py
index 6f67e8f..b7fd369 100644
--- a/gitlab/tests/test_cli.py
+++ b/gitlab/tests/test_cli.py
@@ -34,6 +34,9 @@ from gitlab import cli
("class", "Class"),
("test-class", "TestClass"),
("test-longer-class", "TestLongerClass"),
+ ("current-user-gpg-key", "CurrentUserGPGKey"),
+ ("user-gpg-key", "UserGPGKey"),
+ ("ldap-group", "LDAPGroup"),
],
)
def test_what_to_cls(what, expected_class):
@@ -53,6 +56,9 @@ def test_what_to_cls(what, expected_class):
("TestClass", "test-class"),
("TestUPPERCASEClass", "test-uppercase-class"),
("UPPERCASETestClass", "uppercase-test-class"),
+ ("CurrentUserGPGKey", "current-user-gpg-key"),
+ ("UserGPGKey", "user-gpg-key"),
+ ("LDAPGroup", "ldap-group"),
],
)
def test_cls_to_what(class_name, expected_what):