Skip to content

Commit

Permalink
Merge pull request #12875 from hellozee/fix-unit-test
Browse files Browse the repository at this point in the history
Fix invalid origin test to check all the logged messages
  • Loading branch information
pradyunsg authored Jul 26, 2024
2 parents 203780b + dd85c28 commit 48917f1
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 48917f1

Please sign in to comment.