summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorPeter B. Robinson <robinson96@llnl.gov>2020-10-14 15:49:45 -0700
committerPeter B. Robinson <robinson96@llnl.gov>2020-10-14 15:49:45 -0700
commit9f6335f7b79f52927d5c5734e47f4b8d35cd6c4a (patch)
tree9b149de36349d83a6dc04a4cb71adb3b5a1ea9b4 /gitlab/v4/objects
parent449fc26ffa98ef5703d019154f37a4959816f607 (diff)
downloadgitlab-9f6335f7b79f52927d5c5734e47f4b8d35cd6c4a.tar.gz
test: add test_project_merge_request_approvals.py
Diffstat (limited to 'gitlab/v4/objects')
-rw-r--r--gitlab/v4/objects/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/__init__.py b/gitlab/v4/objects/__init__.py
index c90d18a..80b3c21 100644
--- a/gitlab/v4/objects/__init__.py
+++ b/gitlab/v4/objects/__init__.py
@@ -3033,9 +3033,9 @@ class ProjectMergeRequestApprovalManager(GetWithoutIdMixin, UpdateMixin, RESTMan
ar.approvals_required = data["approvals_required"]
ar.group_ids = data["group_ids"]
ar.save()
- return
+ return ar
""" if there was no rule matching the rule name, create a new one"""
- approval_rules.create(data=data)
+ return approval_rules.create(data=data)
class ProjectMergeRequestApprovalRule(SaveMixin, RESTObject):