Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit57966f9

Browse files
test(api_func_v4): catch deprecation warning forgl.lint()
Catch the deprecation warning for the call to `gl.lint()`, so it won'tshow up in the log.
1 parent201298d commit57966f9

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
deftest_lint(gl):
53-
success,errors=gl.lint("Invalid")
53+
withpytest.warns(
54+
DeprecationWarning,match="Please use `ci_lint.create()` instead."
55+
):
56+
success,errors=gl.lint("Invalid")
5457
assertsuccessisFalse
5558
asserterrors
5659

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp