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:
@@ -102,7 +102,7 @@ defmodule MusicLibrary.Worker.FetchArtistInfoTest do
|
|||||||
|
|
||||||
artist_info = Artists.get_artist_info!(@steven_wilson_mbid)
|
artist_info = Artists.get_artist_info!(@steven_wilson_mbid)
|
||||||
assert artist_info.musicbrainz_data["name"] == "Steven Wilson"
|
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(
|
assert_enqueued(
|
||||||
worker: MusicLibrary.Worker.GenerateRecordEmbedding,
|
worker: MusicLibrary.Worker.GenerateRecordEmbedding,
|
||||||
|
|||||||
Reference in New Issue
Block a user