Commit 0c1af08b authored by Nejc Habjan's avatar Nejc Habjan Committed by Max Wittig
Browse files

chore(tests): catch deprecation warnings

parent f4300782
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -768,10 +768,12 @@ def test_transfer_project(project, resp_transfer_project):


def test_project_pull_mirror(project, resp_start_pull_mirroring_project):
    with pytest.warns(DeprecationWarning, match="is deprecated"):
        project.mirror_pull()


def test_project_pull_mirror_details(project, resp_pull_mirror_details_project):
    with pytest.warns(DeprecationWarning, match="is deprecated"):
        details = project.mirror_pull_details()
    assert details["last_error"] is None
    assert details["update_status"] == "finished"