Skip to content

test: add test to show issue fixed #2195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/functional/api/test_merge_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ def test_merge_requests_get(project, merge_request):
assert mr.iid == mr_iid


def test_merge_requests_list_approver_ids(project, gitlab_ee):
# show https://github.com/python-gitlab/python-gitlab/issues/1698 is now
# fixed
if not gitlab_ee:
pytest.skip("Requires GitLab EE to run")
project.mergerequests.list(
all=True,
state="opened",
author_id=423,
approver_ids=[423],
)


def test_merge_requests_get_lazy(project, merge_request):
new_mr = merge_request(source_branch="test_get")
mr_iid = new_mr.iid
Expand Down