1 file changed
@@ -240,7 +240,11 @@ def test_list_all_false_nowarning(gl, recwarn): | |||
| 240 | 240 | def test_list_all_true_nowarning(gl, get_all_kwargs, recwarn): | |
| 241 | 241 | """Using `get_all=True` will disable the warning""" | |
| 242 | 242 | items = gl.gitlabciymls.list(**get_all_kwargs) | |
| 243 | - 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) | ||
| 244 | 248 | assert len(items) > 20 | |
| 245 | 249 | ||
| 246 | 250 | ||
0 commit comments