Capture logs to avoid useless test log noise
This commit is contained in:
@@ -41,6 +41,7 @@ defmodule MusicLibrary.Worker.FetchArtistLastFmDataTest do
|
|||||||
assert "psychedelic" in tags
|
assert "psychedelic" in tags
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@tag :capture_log
|
||||||
test "returns ok when Last.fm returns an error", %{artist_id: artist_id} do
|
test "returns ok when Last.fm returns an error", %{artist_id: artist_id} do
|
||||||
Req.Test.stub(LastFm.API, fn conn ->
|
Req.Test.stub(LastFm.API, fn conn ->
|
||||||
Req.Test.json(conn, %{"error" => 6, "message" => "Artist not found"})
|
Req.Test.json(conn, %{"error" => 6, "message" => "Artist not found"})
|
||||||
|
|||||||
Reference in New Issue
Block a user