diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-03-28 17:37:39 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-03-28 17:59:07 +0100 |
commit | babd298eca0586dce134d65586bf50410aacd035 (patch) | |
tree | e6f3b32a4c1a106d67c1b0616118db5a2a43ff50 /tools/python_test_v4.py | |
parent | c5904c4c2e79ec302ff0de20bcb2792be4924bbe (diff) | |
download | gitlab-babd298eca0586dce134d65586bf50410aacd035.tar.gz |
test(types): reproduce get_for_api splitting strings (#1057)
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r-- | tools/python_test_v4.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index 69b0d31..e0cb3a6 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -677,10 +677,17 @@ assert issue1.participants() assert type(issue1.closed_by()) == list assert type(issue1.related_merge_requests()) == list -# issues labels and events +# issue labels label2 = admin_project.labels.create({"name": "label2", "color": "#aabbcc"}) issue1.labels = ["label2"] issue1.save() + +assert issue1 in admin_project.issues.list(labels=["label2"]) +assert issue1 in admin_project.issues.list(labels="label2") +assert issue1 in admin_project.issues.list(labels="Any") +assert issue1 not in admin_project.issues.list(labels="None") + +# issue events events = issue1.resourcelabelevents.list() assert events event = issue1.resourcelabelevents.get(events[0].id) |