Namespace Last.Fm fixtures
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
defmodule LastFm.Fixtures do
|
||||
@fixtures_folder Path.join([File.cwd!(), "test/support/fixtures"])
|
||||
defmodule LastFm.Fixtures.Artist do
|
||||
@fixtures_folder Path.join([File.cwd!(), "test/support/fixtures/last_fm"])
|
||||
|
||||
alias LastFm.Artist
|
||||
|
||||
def artist_get_info do
|
||||
def get_info do
|
||||
Path.join([@fixtures_folder, "artist.getinfo.json"])
|
||||
|> File.read!()
|
||||
|> JSON.decode!()
|
||||
Reference in New Issue
Block a user