1 file changed
@@ -24,7 +24,10 @@ def test_snippets(gl): | |||
| 24 | 24 | assert content.decode() == "import gitlab" | |
| 25 | 25 | ||
| 26 | 26 | all_snippets = gl.snippets.list_all(get_all=True) | |
| 27 | - public_snippets = gl.snippets.public(get_all=True) | ||
| 27 | + with pytest.warns( | ||
| 28 | + DeprecationWarning, match=r"Gitlab.snippets.public\(\) is deprecated" | ||
| 29 | + ): | ||
| 30 | + public_snippets = gl.snippets.public(get_all=True) | ||
| 28 | 31 | list_public_snippets = gl.snippets.list_public(get_all=True) | |
| 29 | 32 | assert isinstance(all_snippets, list) | |
| 30 | 33 | assert isinstance(list_public_snippets, list) | |
0 commit comments