diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-07-22 06:28:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 06:28:47 +0200 |
commit | 1855279cf76b46aeebc908cfe6af81f7cb5b6e3f (patch) | |
tree | 0a12c7f14441f4374d4dbeb39ae6f9bf3988ccad | |
parent | 201298d7b5795b7d7338793da8033dc6c71d6572 (diff) | |
parent | 95fe9247fcc9cba65c4afef934f816be06027ff5 (diff) | |
download | gitlab-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.py | 3 |
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 |