From 78487b0085b0ceddd268666a709ed37f3b1b4d08 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 20 Apr 2026 06:46:26 +0100 Subject: [PATCH] Pin Wikipedia intro_html to fixture value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Map.has_key? verified the key existed but not the content. The fixture is deterministic — assert the stored value equals Wikipedia.Fixtures.article_extract_html/0. Refs #176 --- test/music_library/worker/fetch_artist_info_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/music_library/worker/fetch_artist_info_test.exs b/test/music_library/worker/fetch_artist_info_test.exs index 76bf638e..ca82ea6e 100644 --- a/test/music_library/worker/fetch_artist_info_test.exs +++ b/test/music_library/worker/fetch_artist_info_test.exs @@ -102,7 +102,7 @@ defmodule MusicLibrary.Worker.FetchArtistInfoTest do artist_info = Artists.get_artist_info!(@steven_wilson_mbid) assert artist_info.musicbrainz_data["name"] == "Steven Wilson" - assert Map.has_key?(artist_info.wikipedia_data, "intro_html") + assert artist_info.wikipedia_data["intro_html"] == Wikipedia.Fixtures.article_extract_html() assert_enqueued( worker: MusicLibrary.Worker.GenerateRecordEmbedding,