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

Commite095735

Browse files
authored
Merge pull request#2255 from python-gitlab/jlvillal/noop
chore: fix issue if only run test_gitlab.py func test
2 parentsf67514e +bd4dfb4 commite095735

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎tests/functional/api/test_gitlab.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def test_hooks(gl):
126126

127127

128128
deftest_namespaces(gl,get_all_kwargs):
129+
gl.auth()
129130
current_user=gl.user.username
130131

131132
namespaces=gl.namespaces.list(**get_all_kwargs)
@@ -239,7 +240,11 @@ def test_list_all_false_nowarning(gl, recwarn):
239240
deftest_list_all_true_nowarning(gl,get_all_kwargs,recwarn):
240241
"""Using `get_all=True` will disable the warning"""
241242
items=gl.gitlabciymls.list(**get_all_kwargs)
242-
assertnotrecwarn
243+
forwarninrecwarn:
244+
ifissubclass(warn.category,UserWarning):
245+
# Our warning has a link to the docs in it, make sure we don't have
246+
# that.
247+
assert"python-gitlab.readthedocs.io"notinstr(warn.message)
243248
assertlen(items)>20
244249

245250

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp