Skip to content

Unit test and getTracks fail #7

@cici

Description

@cici

getTracks fails with the following error:

ERROR: testTracks (main.PyLyricsTest)

Traceback (most recent call last):
File "tests.py", line 17, in testTracks
self.assertIsInstance(albums[0].tracks(),list)
File "/Users/cici/Downloads/PyLyrics-1.1.0/PyLyrics/functions.py", line 38, in tracks
return PyLyrics.getTracks(self)
File "/Users/cici/Downloads/PyLyrics-1.1.0/PyLyrics/functions.py", line 69, in getTracks
songs =[Track(song.text,album,album.artist()) for song in currentAlbum.findNext('songs').findAll('item')]
UnboundLocalError: local variable 'currentAlbum' referenced before assignment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions