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

Commitaccd5aa

Browse files
JohnVillalovosnejch
authored andcommitted
chore: resolve DeprecationWarning message in CI run
Catch the DeprecationWarning in our test, as we expect it.
1 parent95db680 commitaccd5aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎tests/functional/api/test_snippets.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def test_snippets(gl):
2424
assertcontent.decode()=="import gitlab"
2525

2626
all_snippets=gl.snippets.list_all(get_all=True)
27-
public_snippets=gl.snippets.public(get_all=True)
27+
withpytest.warns(
28+
DeprecationWarning,match=r"Gitlab.snippets.public\(\) is deprecated"
29+
):
30+
public_snippets=gl.snippets.public(get_all=True)
2831
list_public_snippets=gl.snippets.list_public(get_all=True)
2932
assertisinstance(all_snippets,list)
3033
assertisinstance(list_public_snippets,list)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp