summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-07-22 06:28:47 +0200
committerGitHub <noreply@github.com>2022-07-22 06:28:47 +0200
commit1855279cf76b46aeebc908cfe6af81f7cb5b6e3f (patch)
tree0a12c7f14441f4374d4dbeb39ae6f9bf3988ccad
parent201298d7b5795b7d7338793da8033dc6c71d6572 (diff)
parent95fe9247fcc9cba65c4afef934f816be06027ff5 (diff)
downloadgitlab-1855279cf76b46aeebc908cfe6af81f7cb5b6e3f.tar.gz
Merge pull request #2163 from python-gitlab/jlvillal/lint_warning
test(api_func_v4): catch deprecation warning for `gl.lint()`
-rw-r--r--tests/functional/api/test_gitlab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional/api/test_gitlab.py b/tests/functional/api/test_gitlab.py
index 4bc3a2c..0e106fe 100644
--- a/tests/functional/api/test_gitlab.py
+++ b/tests/functional/api/test_gitlab.py
@@ -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