From 95fe9247fcc9cba65c4afef934f816be06027ff5 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 21 Jul 2022 20:30:49 -0700 Subject: [PATCH] test(api_func_v4): catch deprecation warning for `gl.lint()` Catch the deprecation warning for the call to `gl.lint()`, so it won't show up in the log. --- tests/functional/api/test_gitlab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/api/test_gitlab.py b/tests/functional/api/test_gitlab.py index 4bc3a2c7a..0e106fef9 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