Don't extract dominant colors if provided in params

This as the side effect of massively speeding up the test suite: on M1,
it goes from 24 seconds to 14.
This commit is contained in:
Claudio Ortolina
2026-03-07 09:05:44 +00:00
parent bc3c933b28
commit 6a89d31d4c
2 changed files with 5 additions and 2 deletions
@@ -95,7 +95,7 @@ defmodule MusicLibrary.Fixtures.Records do
release_date: Enum.random(1969..2024) |> Integer.to_string(),
purchased_at: current_time,
artists: [artist_attrs(artist_name)],
dominant_colors: ["#000000", "#C0C0C0", "#C08080", "#404000", "#804040"]
dominant_colors: ["#000000", "#c0c0c0", "#c08080", "#404000", "#804040"]
})
|> MusicLibrary.Records.create_record()