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

Lines changed: 4 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy