Yading/musixmatch-master/tests/artist.py
Go to the documentation of this file.
1 from musixmatch import *
2 from tests import base
3 
4 class TestArtist(base.TestItem):
5  Class = artist.Artist
6  item = {
7  "artist_id": "292",
8  "artist_mbid": "292",
9  }
10  item_str = "{ 'artist_id': '292',\n 'artist_mbid': '292'}"
11  item_repr = "Artist({'artist_mbid': '292', 'artist_id': '292'})"
12  item_hash = 292
13 
14 class TestArtistsCollection(base.TestCollection):
15  CollectionClass = artist.ArtistsCollection
16  AllowedContentClass = artist.ArtistsCollection.allowedin()
17  item_list = 'artist_list'
18  item_id = 'artist_id'
19  item = 'artist'
20  message = {
21  "body": {
22  "artist_list": [
23  {
24  "artist": {
25  "artist_id": "292",
26  "artist_mbid": "292",
27  }
28  },
29  {
30  "artist": {
31  "artist_id": "8976",
32  "artist_mbid": "8976",
33  }
34  },
35  {
36  "artist": {
37  "artist_id": "9673",
38  "artist_mbid": "9673",
39  }
40  }
41  ]
42  },
43  "header": {
44  "execute_time": 0.14144802093506001,
45  "status_code": 200
46  }
47  }
48