Skip to content

Commit 0c1af08

Browse files
nejchmax-wittig
authored andcommitted
chore(tests): catch deprecation warnings
1 parent f430078 commit 0c1af08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/objects/test_projects.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,13 @@ def test_transfer_project(project, resp_transfer_project):
768768

769769

770770
def test_project_pull_mirror(project, resp_start_pull_mirroring_project):
771-
project.mirror_pull()
771+
with pytest.warns(DeprecationWarning, match="is deprecated"):
772+
project.mirror_pull()
772773

773774

774775
def test_project_pull_mirror_details(project, resp_pull_mirror_details_project):
775-
details = project.mirror_pull_details()
776+
with pytest.warns(DeprecationWarning, match="is deprecated"):
777+
details = project.mirror_pull_details()
776778
assert details["last_error"] is None
777779
assert details["update_status"] == "finished"
778780

0 commit comments

Comments
 (0)