Esempio n. 1
0
 def test_concat_multi_values_artist_with_no_name(self):
     artists = [Artist(name=None)]
     translated = translator.concat_multi_values(artists, "name")
     assert translated == ""
Esempio n. 2
0
 def test_concat_multi_values_artist_with_no_musicbrainz_id(self):
     artists = [Artist(name="Jah Wobble")]
     translated = translator.concat_multi_values(artists, "musicbrainz_id")
     assert translated == ""
Esempio n. 3
0
 def test_concat_multi_values(self):
     artists = [Artist(name="ABBA"), Artist(name="Beatles")]
     translated = translator.concat_multi_values(artists, "name")
     assert translated == "ABBA;Beatles"