Fixing issue, checking if elements by tag name have at least 1 element
This commit is contained in:
parent
a516a44c32
commit
219ce29f31
2 changed files with 16 additions and 1 deletions
|
@ -417,3 +417,15 @@ class TestPyLastNetwork(TestPyLastWithLastFm):
|
|||
|
||||
# Assert
|
||||
assert int(total) > 10000
|
||||
|
||||
def test_mbid_biography_issue(self):
|
||||
# Arrange
|
||||
mbid = "e2bef0c5-02e7-4505-b87f-90fc96bd70c3"
|
||||
|
||||
# Act
|
||||
artist = self.network.get_artist_by_mbid(mbid)
|
||||
|
||||
# Assert
|
||||
assert isinstance(artist, pylast.Artist)
|
||||
assert artist.name == "Space 92"
|
||||
assert artist.get_bio_content() is None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue