File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ def test_hooks(gl):
126
126
127
127
128
128
def test_namespaces (gl , get_all_kwargs ):
129
+ gl .auth ()
129
130
current_user = gl .user .username
130
131
131
132
namespaces = gl .namespaces .list (** get_all_kwargs )
@@ -239,7 +240,11 @@ def test_list_all_false_nowarning(gl, recwarn):
239
240
def test_list_all_true_nowarning (gl , get_all_kwargs , recwarn ):
240
241
"""Using `get_all=True` will disable the warning"""
241
242
items = gl .gitlabciymls .list (** get_all_kwargs )
242
- assert not recwarn
243
+ for warn in recwarn :
244
+ if issubclass (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" not in str (warn .message )
243
248
assert len (items ) > 20
244
249
245
250
You can’t perform that action at this time.
0 commit comments