ML-169.10.1: Add delete coverage

Cover current delete behavior across LiveView index and show paths, and strengthen existing delete tests with persistence assertions.\n\nValidation: mise run dev:precommit
This commit is contained in:
Claudio Ortolina
2026-05-20 18:04:29 +01:00
parent 981099511f
commit 23960b5b23
12 changed files with 241 additions and 1 deletions
+6 -1
View File
@@ -69,7 +69,12 @@ defmodule MusicLibrary.RecordsTest do
[artist] = record.artists
Records.delete_record(record)
assert {:ok, deleted} = Records.delete_record(record)
assert deleted.id == record.id
assert_raise Ecto.NoResultsError, fn ->
Records.get_record!(record.id)
end
assert_enqueued worker: MusicLibrary.Worker.PruneArtistInfo,
args: %{id: artist.musicbrainz_id}