diff options
author | Alberto López Martín <alberto.lopez@sidisel.com> | 2019-05-24 23:19:24 +0200 |
---|---|---|
committer | Alberto López Martín <alberto.lopez@sidisel.com> | 2019-07-26 08:18:24 +0200 |
commit | 4a9ef9f0fa26e01fc6c97cf88b2a162e21f61cce (patch) | |
tree | 2e1b6893bc9d1927a48e4a95ceea72f690f33ce5 /tools/python_test_v4.py | |
parent | 2c1ea56a217525bbb0a5321eb392c7fe7c100d44 (diff) | |
download | gitlab-4a9ef9f0fa26e01fc6c97cf88b2a162e21f61cce.tar.gz |
feat: group labels with subscriptable mixin
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r-- | tools/python_test_v4.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index d65f39f..e6b6ab9 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -337,6 +337,18 @@ assert len(group1.variables.list()) == 1 g_v.delete() assert len(group1.variables.list()) == 0 +# group labels +group1.labels.create({"name": "foo", "description": "bar", "color": "#112233"}) +g_l = group1.labels.get("foo") +assert g_l.description == "bar" +g_l.description = "baz" +g_l.save() +g_l = group1.labels.get("foo") +assert g_l.description == "baz" +assert len(group1.labels.list()) == 1 +g_l.delete() +assert len(group1.labels.list()) == 0 + # hooks hook = gl.hooks.create({"url": "http://whatever.com"}) assert len(gl.hooks.list()) == 1 |