from tests.helpers import named_str artist_id, artist_name, spotify_artist_uri = ( named_str(s, delimiter='-') for s in ("artist-id", "artist-name", "spotify:artist:artist-id")) apple_artist_uri = artist_id dsp_to_uri_func = {"apple": apple_artist_uri, "spotify": spotify_artist_uri}