Skip to content

Commit

Permalink
Merge pull request #2163 from python-gitlab/jlvillal/lint_warning
Browse files Browse the repository at this point in the history
test(api_func_v4): catch deprecation warning for `gl.lint()`
  • Loading branch information
nejch committed Jul 22, 2022
2 parents 201298d + 95fe924 commit 1855279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional/api/test_gitlab.py
Expand Up @@ -50,7 +50,8 @@ def test_markdown_in_project(gl, project):


def test_lint(gl):
success, errors = gl.lint("Invalid")
with pytest.deprecated_call():
success, errors = gl.lint("Invalid")
assert success is False
assert errors

Expand Down

0 comments on commit 1855279

Please sign in to comment.