Skip to content

Commit

Permalink
Specify hash type
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 11, 2024
1 parent c10dcff commit 91ab7bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_optional_flags_wacz.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,12 @@ def test_warc_with_copy_pages(self, mock_now):
)

self.assertEqual(
hash_file(wacz_pages), hash_file(os.path.join(PAGES_DIR, "pages.jsonl"))
hash_file("sha256", wacz_pages),
hash_file("sha256", os.path.join(PAGES_DIR, "pages.jsonl")),
)
self.assertEqual(
hash_file(wacz_extra_pages),
hash_file(os.path.join(PAGES_DIR, "extraPages.jsonl")),
hash_file("sha256", wacz_extra_pages),
hash_file("sha256", os.path.join(PAGES_DIR, "extraPages.jsonl")),
)

@patch("wacz.main.now")
Expand Down

0 comments on commit 91ab7bc

Please sign in to comment.