summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/api/test_gitlab.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/functional/api/test_gitlab.py b/tests/functional/api/test_gitlab.py
index 8e62210..f2bdf50 100644
--- a/tests/functional/api/test_gitlab.py
+++ b/tests/functional/api/test_gitlab.py
@@ -240,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