Files
music_library/test/support/fixtures/last_fm/artist.ex
T
2026-02-16 10:30:14 +00:00

15 lines
415 B
Elixir

defmodule LastFm.Fixtures.Artist do
@fixtures_folder Path.join([File.cwd!(), "test/support/fixtures/last_fm"])
# Cache fixtures at compile time to avoid repeated file I/O
@get_info Path.join([@fixtures_folder, "artist.getinfo.json"])
|> File.read!()
|> JSON.decode!()
def get_info, do: @get_info
def get_similar_artists do
%{"similarartists" => %{"artist" => []}}
end
end