Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/functional/api/test_gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def test_hooks(gl):


def test_namespaces(gl, get_all_kwargs):
gl.auth()
current_user = gl.user.username

namespaces = gl.namespaces.list(**get_all_kwargs)
Expand Down Expand Up @@ -239,7 +240,11 @@ def test_list_all_false_nowarning(gl, recwarn):
def test_list_all_true_nowarning(gl, get_all_kwargs, recwarn):
"""Using `get_all=True` will disable the warning"""
items = gl.gitlabciymls.list(**get_all_kwargs)
assert not recwarn
for warn in recwarn:
if issubclass(warn.category, UserWarning):
# Our warning has a link to the docs in it, make sure we don't have
# that.
assert "python-gitlab.readthedocs.io" not in str(warn.message)
assert len(items) > 20


Expand Down