Commit 8bfb0fb5 authored by John L. Villalovos's avatar John L. Villalovos
Browse files

chore: resolve DeprecationWarning message in CI run

Catch the DeprecationWarning in our test, as we expect it.
parent 278afd1a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -24,6 +24,9 @@ def test_snippets(gl):
    assert content.decode() == "import gitlab"

    all_snippets = gl.snippets.list_all(get_all=True)
    with pytest.warns(
        DeprecationWarning, match=r"Gitlab.snippets.public\(\) is deprecated"
    ):
        public_snippets = gl.snippets.public(get_all=True)
    list_public_snippets = gl.snippets.list_public(get_all=True)
    assert isinstance(all_snippets, list)