Skip to content

Commit

Permalink
test_mr_list_limit: skip on old python-gitlab
Browse files Browse the repository at this point in the history
@mfocko wasn't able to reproduce locally what we experience in CI

since this involves old python-gitlab that soon will be unsupported,
let's skip it in the meantime

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
  • Loading branch information
TomasTomecek committed Oct 26, 2023
1 parent 50ded3a commit 79f2497
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/gitlab/test_pull_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def test_pr_list(self):
assert title == pr_list[0].title
pr.close()

@pytest.mark.skipif(
is_gitlab_version_smaller_than_314(),
reason="URL syntax changed between versions and"
"our requre data don't work with older gitlab versions",
)
def test_mr_list_limit(self):
pr_list = self.project.get_pr_list(status=PRStatus.all)
count = len({pr.id for pr in pr_list})
Expand Down

0 comments on commit 79f2497

Please sign in to comment.