Skip to content

Commit 57966f9

Browse files
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.
1 parent 201298d commit 57966f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/functional/api/test_gitlab.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ def test_markdown_in_project(gl, project):
5050

5151

5252
def test_lint(gl):
53-
success, errors = gl.lint("Invalid")
53+
with pytest.warns(
54+
DeprecationWarning, match="Please use `ci_lint.create()` instead."
55+
):
56+
success, errors = gl.lint("Invalid")
5457
assert success is False
5558
assert errors
5659

0 commit comments

Comments
 (0)
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