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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy