Exemplo n.º 1
0
    def test_fill_genres_country(self):
        genres = ['country']
        expected_genres = ['country', 'bluegrass']

        spotify.fill_genres(genres)

        assert genres == expected_genres
Exemplo n.º 2
0
    def test_fill_genres_dance(self):
        genres = ['dance']
        expected_genres = ['dance', 'house']

        spotify.fill_genres(genres)

        assert genres == expected_genres
Exemplo n.º 3
0
    def test_fill_genres_pop(self):
        genres = ['pop']

        spotify.fill_genres(genres)

        assert len(genres) == 5
        assert genres[0] == 'pop'
Exemplo n.º 4
0
    def test_fill_genres_rock(self):
        genres = ['rock']

        spotify.fill_genres(genres)

        assert len(genres) == 5
        assert genres[0] == 'rock'
Exemplo n.º 5
0
    def test_fill_genres_full(self):
        genres = ['pop', 'rock', 'soul', 'r-n-b', 'techno']

        expected_genres = ['pop', 'rock', 'soul', 'r-n-b', 'techno']

        spotify.fill_genres(genres)

        assert genres == expected_genres
Exemplo n.º 6
0
    def test_fill_genres_hardcoded2(self):
        genres = ['r-n-b', 'techno']

        expected_genres = ['r-n-b', 'techno', 'soul', 'detroit-techno']

        spotify.fill_genres(genres)

        assert genres == expected_genres
Exemplo n.º 7
0
    def test_fill_genres_hardcoded(self):
        genres = ['soul', 'alternative', 'techno']

        expected_genres = [
            'soul', 'alternative', 'techno', 'alt-rock', 'r-n-b'
        ]

        spotify.fill_genres(genres)

        assert genres == expected_genres