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