Fix return type of artist_get_info fixture

This commit is contained in:
Claudio Ortolina
2025-01-24 10:26:12 +00:00
parent 96349b918d
commit 3c8b39237c
3 changed files with 8 additions and 10 deletions
@@ -1,9 +1,13 @@
defmodule LastFm.Fixtures do
@fixtures_folder Path.join([File.cwd!(), "test/support/fixtures"])
alias LastFm.Artist
def artist_get_info do
Path.join([@fixtures_folder, "artist.getinfo.json"])
|> File.read!()
|> JSON.decode!()
|> Map.get("artist")
|> Artist.from_api_response()
end
end