Skip to content

Commit

Permalink
Fix invalid origin test to check all the logged messages
Browse files Browse the repository at this point in the history
Fixes #12152
  • Loading branch information
hellozee committed Jul 24, 2024
1 parent 203780b commit dd85c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file.
4 changes: 3 additions & 1 deletion tests/unit/test_req.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ def test_download_info_archive_cache_with_invalid_origin(
assert len(reqset.all_requirements) == 1
req = reqset.all_requirements[0]
assert req.is_wheel_from_cache
assert "Ignoring invalid cache entry origin file" in caplog.messages[0]
assert any(
"Ignoring invalid cache entry origin file" in x for x in caplog.messages
)

def test_download_info_local_wheel(self, data: TestData) -> None:
"""Test that download_info is set for requirements from a local wheel."""
Expand Down

0 comments on commit dd85c28

Please sign in to comment.