def test_single_valid_artist(self): singleProfile = [{ 'familiarity': 0.908821, 'hotttnesss': 0.804396, 'name': 'The Beatles', 'id': 'AR6XZ861187FB4CECD' }] self.assertIsInstance(main.how_mainstream(singleProfile), str)
def test_multiple_valid_artists(self): multipleProfiles = [{ 'familiarity': 0.908821, 'hotttnesss': 0.804396, 'name': 'The Beatles', 'id': 'AR6XZ861187FB4CECD' }, { 'familiarity': 0.858889, 'hotttnesss': 0.797314, 'name': 'Pink Floyd', 'id': 'ARD4C1I1187FB4B0C3' }] self.assertIsInstance(main.how_mainstream(multipleProfiles), str)
def test_empty_list(self): self.assertIsInstance(main.how_mainstream([]), str)
def test_multiple_valid_artists(self): multipleProfiles = [{'familiarity': 0.908821, 'hotttnesss': 0.804396, 'name': 'The Beatles', 'id': 'AR6XZ861187FB4CECD'}, {'familiarity': 0.858889, 'hotttnesss': 0.797314, 'name': 'Pink Floyd', 'id': 'ARD4C1I1187FB4B0C3'}] self.assertIsInstance(main.how_mainstream(multipleProfiles), str)
def test_single_valid_artist(self): singleProfile = [{'familiarity': 0.908821, 'hotttnesss': 0.804396, 'name': 'The Beatles', 'id': 'AR6XZ861187FB4CECD'}] self.assertIsInstance(main.how_mainstream(singleProfile), str)