Speed up tests by caching cover data

Suggested and executed by Claude
This commit is contained in:
Claudio Ortolina
2025-06-14 21:15:06 +03:00
parent 889c388d97
commit 07d9db6011
6 changed files with 21 additions and 11 deletions
@@ -61,7 +61,7 @@ defmodule MusicLibraryWeb.CoverControllerTest do
test "accepts a size attribute for resizing", %{conn: conn, record: record} do
conn = get(conn, ~p"/covers/#{record.id}?size=480")
thumb = File.read!(marbles_thumb_fixture())
thumb = marbles_thumb_data()
hash = Cover.hash(thumb)
assert conn.status == 200