Pin Wikipedia intro_html to fixture value

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
This commit is contained in:
Claudio Ortolina
2026-04-20 06:46:26 +01:00
parent a6319d55df
commit 78487b0085
@@ -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,