| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 95db680 commit accd5aa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments