Extract Artists context

This commit is contained in:
Claudio Ortolina
2024-12-18 11:12:06 +00:00
parent 76605a1114
commit 53b89dc329
7 changed files with 88 additions and 75 deletions
-11
View File
@@ -168,17 +168,6 @@ defmodule MusicLibrary.RecordsTest do
end
end
describe "get_artist/1" do
test "it returns records with essential data" do
record = record_fixture()
[expected] = record.artists
artist = Records.get_artist!(expected.musicbrainz_id)
assert expected == artist
end
end
describe "get_cover/1" do
test "it returns the record cover by id" do
# while this test may seem redundant, it implicitely checks that ALL record fields are returned,