Skip to content

Commit

Permalink
chore(tests): catch deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch authored and max-wittig committed Jan 28, 2025
1 parent f430078 commit 0c1af08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/objects/test_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,11 +768,13 @@ def test_transfer_project(project, resp_transfer_project):


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


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

Expand Down

0 comments on commit 0c1af08

Please sign in to comment.