from config import IMAGE_SERVICE_URL CATEGORY_FIELDS = {"name": "test"} CATEGORY_FIELDS_2 = {"name": "TesT"} CATEGORY_FIELDS_ERR = {"field": "test"} CATEGORY_FIELDS_HOME = {"name": "test_1", "is_homepage": True} GET_ARTIST_CATEGORIES_URL = "/api/dna/categories/artist" GET_TRACK_CATEGORIES_URL = "/api/dna/categories/track" ARTIST_CATEGORY_ENTITY_1643771_RESPONSE_DATA = [ { "id": 1643771, "entity_type": "artist", "is_signed": False, "data": { "id": "1643771", "name": "Aiko", "label": "1027634 Records DK", "image_url": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/59SThek9uTINSehGNcgmsi", "artwork_url": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/59SThek9uTINSehGNcgmsi", "artwork_url_alt": "https://i.scdn.co/image/ab676161000051748b9b4dfb707fb634bad03f2a", "country": {"code": "pl", "name": "Poland"}, "genres": [{"code": "blues", "name": "Blues"}, {"code": "metal", "name": "Metal"}], "tiktok": { "mentions": 0, "label": "1027634 Records DK", "avg_duration": "16.29", "tiktok_user": 24259667, "followers": 7599, "code2": "DE", "likes": 171500, "videos": 47, "user_name": "ayzzk", "latest_release_date": "2022-04-25", "id": "6786314853072487430", "chart_type": "followers", "chart_data": [ 7604, 7605, 7601, 7599, 7598, 7597, 7599, 7608, 7601, 7619, 7619, 7618, 7616, 7615, 7613, 7609, 7610, 7608, 7605, 7609, 7605, 7601, 7599, ], "followers_change": -11, }, }, }, ] ARTIST_CATEGORY_ENTITY_SIGNED_NON_SIGNED_RESPONSE_DATA = [ {"entity_type": "artist", "id": 1343350, "is_signed": True}, { "id": 1643771, "entity_type": "artist", "is_signed": False, "data": { "id": "1643771", "name": "Aiko", "label": "1027634 Records DK", "country": {"code": "pl", "name": "Poland"}, "genres": [{"code": "blues", "name": "Blues"}, {"code": "metal", "name": "Metal"}], "image_url": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/59SThek9uTINSehGNcgmsi", "artwork_url": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/59SThek9uTINSehGNcgmsi", "artwork_url_alt": "https://i.scdn.co/image/ab676161000051748b9b4dfb707fb634bad03f2a", "tiktok": { "mentions": 0, "label": "1027634 Records DK", "avg_duration": "16.29", "tiktok_user": 24259667, "followers": 7599, "code2": "DE", "likes": 171500, "videos": 47, "user_name": "ayzzk", "latest_release_date": "2022-04-25", "id": "6786314853072487430", "chart_type": "followers", "chart_data": [ 7604, 7605, 7601, 7599, 7598, 7597, 7599, 7608, 7601, 7619, 7619, 7618, 7616, 7615, 7613, 7609, 7610, 7608, 7605, 7609, 7605, 7601, 7599, ], "followers_change": -11, }, }, }, ] ES_DATA_TO_INSERT = [ { "spotify_artist_id": "59SThek9uTINSehGNcgmsi", "name": "Aiko", "label": "1027634 Records DK", "artwork_url": "https://i.scdn.co/image/ab676161000051748b9b4dfb707fb634bad03f2a", "id": "1643771", "country": "pl", "genres": ["metal", "blues"], }, { "spotify_artist_id": "1ScQHshsghfh1H0r7VXEEe", "name": "Sophie Griffiths", "label": "SAM Records", "artwork_url": "https://i.scdn.co/image/ab67616100005174a6400cdd3c850f1ba2423df5", "id": "1343350", "country": "pl", "genres": ["metal", "blues"], }, { "id": "175179", "spotify_artist_id": "2haWKVf4SjBUrihzS4ul3R", "name": "Jocelyn & Chris Arndt", "label": "Bridge Road Entertainment", "artwork_url": "https://i.scdn.co/image/ab67616100005174a443f69e389a4369f457c7c8", "country": "pl", "genres": ["metal", "blues"], }, { "id": "759151", "spotify_artist_id": "3CT9VsUzsdwJMIl69gqxAa", "name": "Villows", "label": "Villows", "artwork_url": "https://i.scdn.co/image/ab676161000051744839580e07aace07ae66564c", "country": "pl", "genres": ["metal", "blues"], }, ] PG_DATA_TO_INSERT = [ { "id": "1643771", "value": { "spotify_artist_id": "59SThek9uTINSehGNcgmsi", "name": "Aiko", "label": "1027634 Records DK", "artwork_url": "https://i.scdn.co/image/ab676161000051748b9b4dfb707fb634bad03f2a", "id": "1643771", "country": "pl", "genres": ["metal", "blues"], "tiktok": { "label": "1027634 Records DK", "code2": "DE", "tiktok_user": 24259667, "followers": 7599, "likes": 171500, "videos": 47, "user_id": "6786314853072487430", "user_name": "ayzzk", "avg_duration": "16.29", "mentions": 0, "latest_release_date": "2022-04-25", "followers_change": -11, "followers_chart": [ 7604, 7605, 7601, 7599, 7598, 7597, 7599, 7608, 7601, 7619, 7619, 7618, 7616, 7615, 7613, 7609, 7610, 7608, 7605, 7609, 7605, 7601, 7599, ], "likes_chart": [ 168700, 168700, 168800, 168800, 168800, 168800, 169100, 169700, 169800, 171100, 171100, 171200, 171200, 171200, 171200, 171200, 171200, 171200, 171200, 171500, 171500, 171500, 171500, ], "last_chart_date": "2022-05-09", }, }, }, { "id": "1343350", "value": { "spotify_artist_id": "1ScQHshsghfh1H0r7VXEEe", "name": "Sophie Griffiths", "label": "SAM Records", "artwork_url": "https://i.scdn.co/image/ab67616100005174a6400cdd3c850f1ba2423df5", "id": "1343350", "country": "pl", "genres": ["metal", "blues"], "tiktok": { "label": "SAM Records", "code2": None, "tiktok_user": 5033071, "followers": 366500, "likes": 5800000, "videos": 392, "user_id": "6747030038803170309", "user_name": "sophiegsinger", "avg_duration": "22.86", "mentions": 6, "latest_release_date": "2022-06-17", "followers_change": 1100, "followers_chart": [ 364800, 364900, 364800, 364800, 364800, 364800, 365000, 365100, 365100, 365100, 365200, 365200, 365200, 365200, 365200, 365300, 365300, 365300, 365300, 365300, 365300, 365400, 365400, 365400, 365400, 365400, 365500, 366500, ], "likes_chart": [ 5700000, 5700000, 5700000, 5700000, 5700000, 5700000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, 5800000, ], "last_chart_date": "2022-06-22", }, }, }, { "id": "175179", "value": { "id": "175179", "spotify_artist_id": "2haWKVf4SjBUrihzS4ul3R", "name": "Jocelyn & Chris Arndt", "label": "Bridge Road Entertainment", "artwork_url": "https://i.scdn.co/image/ab67616100005174a443f69e389a4369f457c7c8", "country": "pl", "genres": ["metal", "blues"], "tiktok": { "label": "Bridge Road Entertainment", "code2": "US", "tiktok_user": 3472592, "followers": 2341, "likes": 31700, "videos": 75, "user_id": "6823913619177489414", "user_name": "jocelynandchris", "avg_duration": "24.7", "mentions": 1, "latest_release_date": "2022-06-14", "followers_change": 35, "followers_chart": [ 2027, 2063, 2067, 2068, 2073, 2075, 2076, 2079, 2080, 2081, 2085, 2088, 2092, 2167, 2233, 2299, 2303, 2303, 2304, 2303, 2304, 2306, 2314, 2325, 2340, 2341, 2341, 2341, ], "likes_chart": [ 29600, 30000, 30000, 30000, 30100, 30100, 30100, 30200, 30200, 30200, 30300, 30300, 30300, 30500, 30900, 31500, 31500, 31500, 31600, 31600, 31600, 31600, 31600, 31700, 31700, 31700, 31700, 31700, ], "last_chart_date": "2022-06-22", }, }, }, { "id": "759151", "value": { "id": "759151", "spotify_artist_id": "3CT9VsUzsdwJMIl69gqxAa", "name": "Villows", "label": "Villows", "artwork_url": "https://i.scdn.co/image/ab676161000051744839580e07aace07ae66564c", "country": "pl", "genres": ["metal", "blues"], "tiktok": { "label": "Villows", "code2": "US", "tiktok_user": 102353, "followers": 59, "likes": 331, "videos": 17, "user_id": "6751392189182297094", "user_name": "villowsmusic", "avg_duration": "11.38", "mentions": 0, "latest_release_date": "2022-04-03", "followers_change": 0, "followers_chart": [ 56, 56, 56, 56, 56, 56, 57, 57, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 59, 59, 59, 60, 61, 61, 61, 61, 59, ], "likes_chart": [ 298, 298, 299, 299, 299, 300, 300, 301, 301, 301, 301, 301, 301, 309, 324, 324, 326, 326, 326, 328, 329, 330, 330, 330, 330, 330, 331, 331, ], "last_chart_date": "2022-06-22", }, }, }, ] TRACK_ES_DATA_TO_INSERT = [ { "id": "13698092", "artwork_url": "https://api.deezer.com/album/42225581/image", "country": "fr", "label": "Virgin EMI", "genres": ["hip-hop-rap"], "name": "Boys In The Street", "artist_name": "Greg Holden", "cm_artist_id": "4046", "spotify_track_id": "7DSjPEMbByp01J8dAutjLd", "youtube": { "latest_release_date": "2015-06-17", "views": 2187405, "views_change": None, "likes": 26395, "comments": 1246, "videos": 1, }, }, { "id": "13692288", "artist_name": "Ugress", "artwork_url": "https://i.scdn.co/image/9a55f5d67616387ce52d22b443d5b34ed8d5d15b", "name": "Kaleido Scope", "label": "Uncanny Planet Records", "cm_artist_id": "456394", "spotify_track_id": "2fdJYjj21WWSjBGtz63OXY", "country": "no", "genres": ["electronic"], "tiktok": {"views": 30, "views_change": 0, "likes": 2, "comments": 1, "posts_latest": 1, "mentions": 0}, }, { "id": "13496071", "artist_name": "Kovacs", "artwork_url": "https://i.scdn.co/image/26f2927cc3ed5951b9dd32578183d25d7a16940d", "name": "My Love", "label": "WM Benelux BV", "cm_artist_id": "211166", "spotify_track_id": "0uEftEHpAjuL2V6NScCs4n", "country": "hu", "genres": ["pop"], "tiktok": { "views": 13700307, "views_change": 7571309, "likes": 946742, "comments": 21214, "posts_latest": 2374, "mentions": 0, }, "youtube": { "latest_release_date": "2014-06-19", "views": 18723397, "views_change": None, "likes": 117166, "comments": 1865, "videos": 1, }, "soundcloud": { "latest_release_date": "2013-12-09", "followers": 22162, "plays": 359380, "plays_change": 37, "likes": 113230, "comments": 74756, "genre": "Reggae", }, "spotify": { "monthly_listeners": 138324, "playlists": 361, "streams": 1974031, "streams_change": 1042, "popularity": 25, }, }, { "id": "11160650", "artist_name": "Classified", "artwork_url": "https://i.scdn.co/image/74f51993ee3d323a96e5c8101e6ef31f0710f7f4", "name": "The Day Doesn't Die", "label": "Half Life Records Inc.", "cm_artist_id": "1942", "country": "n-a", "spotify_track_id": "77SEuXiZPAUKqmwifOgSYf", "genres": ["new-age"], "tiktok": {"views": 1726, "views_change": 1245, "likes": 65, "comments": 7, "posts_latest": 5, "mentions": 2}, "youtube": { "latest_release_date": "2022-03-02", "views": 223599, "views_change": 557, "likes": 1559, "comments": 288, "videos": 1, }, "spotify": { "monthly_listeners": 103589, "playlists": 44, "streams": 617285, "streams_change": 320, "popularity": 16, }, "soundcloud": { "latest_release_date": "2018-10-08", "followers": 25215, "plays": 159, "plays_change": 10, "likes": 6, "comments": 1, "genre": "Reggae", }, }, { "id": "14794441", "artist_name": "Nick Monaco", "artwork_url": "https://i.scdn.co/image/4eba9b2d579b3cf07a5c8ba245a6abc2cdad71f9", "name": "Private Practice", "label": "Soul Clap Records", "cm_artist_id": "48379", "country": "us", "spotify_track_id": "2BtzKwwExJge8RS4N3rGUK", "genres": ["electronic"], "spotify": { "monthly_listeners": 89264, "playlists": 72, "streams": 1060993, "streams_change": 987, "popularity": 27, }, }, { "id": "14794838", "artist_name": "Phaeleh", "artwork_url": "https://i.scdn.co/image/d8a9cea2efed2b8742b04788d3aab2282b6cd67b", "name": "One", "label": "Undertow", "cm_artist_id": "3383", "country": "gb", "spotify_track_id": "11hcIOtzMBjW9pQxW9MpJo", "genres": ["ambient", "electronic"], "soundcloud": { "latest_release_date": "2021-11-09", "followers": 102190, "plays": 350, "plays_change": 0, "likes": 8, "comments": 1, "genre": "Ambient", }, }, ] TRACK_PG_DATA_TO_INSERT = [ { "id": "13698092", "value": { "id": "13698092", "artwork_url": "https://api.deezer.com/album/42225581/image", "name": "Boys In The Street", "label": "Virgin EMI", "isrc": "NOUM71700164", "spotify_track_id": "0gG3KpZ0bZdHpxN0ElGv36", "release_date": "2017-06-02", "artist_name": "Greg Holden", "cm_artist_id": "4046", "country": "fr", "genres": ["hip-hop-rap"], "youtube": { "likes": 26395, "comments": 1246, "views": 2187405, "views_change": None, "videos": 1, "latest_release_date": "2015-06-17", "likes_chart": [26395], "views_chart": [2187405], "last_chart_date": "2019-06-29", }, }, }, { "id": "13692288", "value": { "id": "13692288", "artist_name": "Ugress", "cm_artist_id": "456394", "artwork_url": "https://i.scdn.co/image/9a55f5d67616387ce52d22b443d5b34ed8d5d15b", "isrc": "NOPAZ0204100", "spotify_track_id": "0Cxi0kjNlYCL6DmmigOFLz", "release_date": "2002-09-09", "name": "Kaleido Scope", "label": "Uncanny Planet Records", "country": "ge", "genres": ["electronic"], "tiktok": { "likes": 2, "comments": 1, "views": 30, "posts_latest": 1, "mentions": 0, "views_change": 0, "likes_chart": [1, 1, 1, 1, 2], "views_chart": [18, 22, 23, 29, 30], "last_chart_date": "2022-05-15", }, }, }, { "id": "13496071", "value": { "id": "13496071", "artist_name": "Kovacs", "label": "WM Benelux BV", "cm_artist_id": "211166", "artwork_url": "https://i.scdn.co/image/26f2927cc3ed5951b9dd32578183d25d7a16940d", "isrc": "NLB8P1500016", "spotify_track_id": "0uEftEHpAjuL2V6NScCs4n", "release_date": "2015-04-10", "name": "My Love", "country": "hu", "genres": ["pop"], "tiktok": { "likes": 946742, "comments": 21214, "views": 13700307, "last_chart_date": "2022-05-15", "posts_latest": 2374, "mentions": 0, "views_change": 7571309, "likes_chart": [ 528050, 523390, 528721, 533116, 532359, 327, 532471, 793694, 532439, 533059, 533246, 546534, 532748, 547341, 561145, 533109, 532956, 532890, 534460, 532963, 791936, 534065, 778203, 798660, 552175, 599975, 607339, 605841, ], "views_chart": [ 5862263, 5801131, 6004926, 6140087, 6103214, 6132, 6104011, 11531936, 6103462, 6120267, 6119018, 6258558, 6107938, 6274625, 6304575, 6119797, 6108650, 6106483, 6220680, 6106690, 11750679, 6133026, 11516366, 11954959, 6540488, 7020595, 7022489, 7005034, ], }, "youtube": { "likes": 117166, "comments": 1865, "views": 18723397, "views_change": None, "videos": 1, "latest_release_date": "2014-06-19", "likes_chart": [117166], "views_chart": [18723397], "last_chart_date": "2020-09-07", }, "soundcloud": { "id": "14785677", "genre": "Reggae", "latest_release_date": "2013-12-09", "soundcloud_track_id": 768370054, "plays_chart": [ 359279, 359278, 359277, 359276, 359282, 359286, 359290, 359285, 359290, 359295, 359301, 359307, 359311, 359311, 359312, 359317, 359319, 359322, 359332, 359340, 359349, 359359, 359362, 359366, 359375, 359379, 359383, 359380, ], "likes_chart": [ 113041, 113052, 113064, 113075, 113079, 113084, 113084, 113088, 113092, 113102, 113112, 113122, 113125, 113130, 113136, 113140, 113150, 113161, 113172, 113176, 113181, 113187, 113198, 113209, 113217, 113223, 113230, 113230, ], "comments_chart": [ 74667, 74671, 74674, 74678, 74678, 74683, 74689, 74694, 74702, 74710, 74713, 74715, 74718, 74713, 74715, 74717, 74722, 74724, 74726, 74726, 74728, 74731, 74737, 74739, 74742, 74750, 74753, 74756, ], "followers_chart": [ 22024, 22030, 22036, 22041, 22047, 22047, 22053, 22060, 22073, 22077, 22082, 22089, 22096, 22104, 22108, 22113, 22117, 22124, 22131, 22132, 22133, 22135, 22141, 22145, 22149, 22152, 22157, 22162, ], "plays_change": 37, "plays": 359380, "likes": 113230, "comments": 74756, "followers": 22162, "last_chart_date": "2022-10-04", }, "spotify": { "id": "14792462", "popularity": 25, "playlists": 361, "streams": 1974031, "streams_change": 1042, "monthly_listeners": 138324, "monthly_listeners_chart": [ 151019, 149519, 148555, 147473, 146837, 146517, 145935, 145448, 144854, 144124, 143423, 142606, 142037, 141627, 141055, 140556, 139697, 139697, 139366, 138967, 138652, 138441, 138284, 138343, 138343, 138162, 138324, ], "last_chart_date": "2022-10-03", "streams_chart": [ 1968868, 1969245, 1969468, 1969651, 1969880, 1970060, 1970199, 1970416, 1970621, 1970832, 1971049, 1971271, 1971463, 1971606, 1971761, 1971940, 1972304, 1972304, 1972510, 1972668, 1972812, 1972989, 1973182, 1973394, 1973626, 1973842, 1974031, ], }, }, }, { "id": "11160650", "value": { "id": "11160650", "artist_name": "Classified", "cm_artist_id": "1942", "artwork_url": "https://i.scdn.co/image/74f51993ee3d323a96e5c8101e6ef31f0710f7f4", "isrc": "CABD61101006", "spotify_track_id": "77SEuXiZPAUKqmwifOgSYf", "release_date": "2011-03-22", "name": "The Day Doesn't Die", "label": "Half Life Records Inc.", "country": "n-a", "genres": ["new-age"], "tiktok": { "likes": 65, "comments": 7, "views": 1726, "last_chart_date": "2022-05-15", "posts_latest": 5, "mentions": 2, "views_change": 1245, "likes_chart": [33, 30, 39, 50, 56, 61, 63, 65], "views_chart": [724, 481, 984, 1608, 1662, 1693, 1714, 1726], }, "youtube": { "likes": 1559, "comments": 288, "views": 223599, "views_change": 557, "videos": 1, "latest_release_date": "2022-03-02", "likes_chart": [ 1524, 1525, 1526, 1526, 1527, 1527, 1527, 1528, 1529, 1529, 1532, 1534, 1536, 1535, 1536, 1536, 1537, 1537, 1538, 1546, 1548, 1551, 1552, 1556, 1557, 1557, 1558, 1559, ], "views_chart": [ 221453, 221515, 221570, 221627, 221687, 221744, 221805, 221865, 221931, 221981, 222060, 222133, 222204, 222277, 222361, 222433, 222487, 222532, 222603, 222778, 222921, 223042, 223128, 223225, 223325, 223418, 223503, 223599, ], "last_chart_date": "2022-07-08", }, "spotify": { "id": "14792533", "popularity": 16, "playlists": 44, "streams": 617285, "streams_change": 320, "monthly_listeners": 103589, "monthly_listeners_chart": [ 110213, 108296, 107967, 108113, 108195, 108571, 108571, 109231, 109552, 109863, 109781, 109845, 109845, 109710, 109710, 109607, 109317, 109226, 108348, 107378, 107378, 105672, 105079, 104706, 104184, 103844, 103589, ], "last_chart_date": "2022-10-03", "streams_chart": [ 615910, 616006, 616006, 616063, 616114, 616159, 616194, 616241, 616289, 616397, 616487, 616487, 616533, 616591, 616705, 616771, 616771, 616879, 616879, 616914, 616965, 617075, 617135, 617135, 617235, 617285, ], }, "soundcloud": { "id": "14793001", "genre": "Reggae", "latest_release_date": "2018-10-08", "soundcloud_track_id": 622289427, "plays_chart": [ 125, 126, 126, 127, 127, 128, 128, 129, 129, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 159, 159, 159, 159, 159, ], "likes_chart": [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6], "comments_chart": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "followers_chart": [ 24808, 24823, 24839, 24857, 24876, 24886, 24898, 24911, 24931, 24950, 24969, 24991, 25003, 25016, 25024, 25041, 25058, 25076, 25085, 25095, 25113, 25132, 25151, 25161, 25181, 25201, 25215, 25215, ], "plays_change": 10, "plays": 159, "likes": 6, "comments": 1, "followers": 25215, "last_chart_date": "2022-10-04", }, }, }, { "id": "14794441", "value": { "id": "14794441", "artist_name": "Nick Monaco", "cm_artist_id": "48379", "artwork_url": "https://i.scdn.co/image/4eba9b2d579b3cf07a5c8ba245a6abc2cdad71f9", "isrc": "USA2P1426030", "name": "Private Practice", "label": "Soul Clap Records", "release_date": "2021-05-07", "spotify_track_id": "2BtzKwwExJge8RS4N3rGUK", "country": "us", "genres": ["electronic"], "spotify": { "id": "14794441", "popularity": 27, "playlists": 72, "streams": 1060993, "streams_change": 987, "monthly_listeners": 89264, "monthly_listeners_chart": [ 89403, 90378, 90537, 90335, 90142, 89834, 89495, 89841, 90017, 89955, 89955, 89728, 89590, 89266, 90619, 90619, 91538, 91522, 91488, 91328, 91255, 91880, 91811, 91648, 91154, 90399, 89932, 89264, ], "last_chart_date": "2022-10-04", "streams_chart": [ 1055978, 1056381, 1056588, 1056795, 1056985, 1057182, 1057335, 1057532, 1057718, 1057929, 1058141, 1058340, 1058517, 1058662, 1058827, 1058827, 1059172, 1059351, 1059554, 1059735, 1059871, 1060006, 1060175, 1060330, 1060692, 1060862, 1060993, ], }, }, }, { "id": "14794838", "value": { "id": "14794838", "artist_name": "Phaeleh", "cm_artist_id": "3383", "artwork_url": "https://i.scdn.co/image/d8a9cea2efed2b8742b04788d3aab2282b6cd67b", "isrc": "USA2P1435335", "name": "One", "label": "Undertow", "release_date": "2021-11-09", "spotify_track_id": "11hcIOtzMBjW9pQxW9MpJo", "country": "gb", "genres": ["ambient", "electronic"], "soundcloud": { "id": "14794838", "genre": "Ambient", "latest_release_date": "2021-11-09", "soundcloud_track_id": 1157042950, "plays_chart": [ 343, 343, 344, 344, 344, 344, 345, 345, 345, 346, 346, 346, 347, 347, 347, 348, 348, 348, 349, 349, 350, 350, 350, 350, 350, 350, 350, 350, ], "likes_chart": [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], "comments_chart": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "followers_chart": [ 102149, 102151, 102153, 102156, 102155, 102156, 102158, 102162, 102164, 102166, 102164, 102166, 102168, 102174, 102176, 102178, 102180, 102183, 102186, 102186, 102187, 102192, 102188, 102185, 102189, 102188, 102188, 102190, ], "plays_change": 0, "plays": 350, "likes": 8, "comments": 1, "followers": 102190, "last_chart_date": "2022-10-04", }, }, }, ] TRACK_CATEGORY_ENTITY_13698092_RESPONSE_DATA = [ { "id": 13698092, "entity_type": "track", "data": { "youtube": { "views": 2187405, "likes": 26395, "latest_release_date": "2015-06-17", "views_change": None, "videos": 1, "chart_type": "likes", "chart_data": [26395], "comments": 1246, }, "id": "13698092", "country": {"code": "fr", "name": "France"}, "genres": [{"code": "hip-hop-rap", "name": "Hip-Hop/Rap"}], "artwork_url": f"{IMAGE_SERVICE_URL}/v2/albums/by_spotify_track_id/0gG3KpZ0bZdHpxN0ElGv36", "artwork_url_alt": "https://api.deezer.com/album/42225581/image", "artist_name": "Greg Holden", "label": "Virgin EMI", "spotify_track_id": "0gG3KpZ0bZdHpxN0ElGv36", "release_date": "2017-06-02", "cm_artist_id": "4046", "isrc": "NOUM71700164", "name": "Boys In The Street", }, } ] EMPTY_CATEGORY_RESPONSE = [ {"id": 18, "name": "test_1", "is_homepage": True, "cover_image": None, "counters": {"artist": 0, "track": 0}} ] CATEGORIES_ARTIST_EXPECTED_RETURN_DATA = [ { "id": 11, "name": "category_1", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/2haWKVf4SjBUrihzS4ul3R?resolution=large", "counters": {"artist": 2, "track": 0}, } ] CATEGORY_ARTIST_EXPECTED_RETURN_DATA = { "id": 11, "name": "category_1", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/2haWKVf4SjBUrihzS4ul3R?resolution=large", "counters": {"artist": 2, "track": 0}, } CATEGORY_ARTIST_EXPECTED_RETURN_DATA_IMAGE_URL = { "id": 45, "name": "test_category", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/2haWKVf4SjBUrihzS4ul3R?resolution=large", "counters": {"track": 0, "artist": 2}, } CATEGORIES_ARTIST_EXPECTED_RETURN_DATA_IMAGE_URL = [ { "id": 45, "name": "test_category", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/2haWKVf4SjBUrihzS4ul3R?resolution=large", "counters": {"artist": 2, "track": 0}, } ] CATEGORY_ARTIST_EXPECTED_RETURN_DATA_IMAGE_URL_UPDATED = { "id": 45, "name": "test_category", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/1ScQHshsghfh1H0r7VXEEe?resolution=large", "counters": {"track": 0, "artist": 2}, } CATEGORIES_ARTIST_EXPECTED_RETURN_DATA_IMAGE_URL_UPDATED = [ { "id": 45, "name": "test_category", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/artists/by_spotify_id/1ScQHshsghfh1H0r7VXEEe?resolution=large", "counters": {"track": 0, "artist": 2}, } ] CATEGORY_TRACK_EXPECTED_RETURN_DATA = { "id": 12, "name": "category_1", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/albums/by_spotify_track_id/2fdJYjj21WWSjBGtz63OXY?resolution=large", "counters": {"artist": 0, "track": 2}, } CATEGORIES_TRACK_EXPECTED_RETURN_DATA = [ { "id": 12, "name": "category_1", "is_homepage": True, "cover_image": f"{IMAGE_SERVICE_URL}/v2/albums/by_spotify_track_id/2fdJYjj21WWSjBGtz63OXY?resolution=large", "counters": {"artist": 0, "track": 2}, } ] CATEGORIES_ARTIST_TRACK_LONG_IDS_EXPECTED_RETURN_DATA = [ {"categories": [], "id": 1111111111111}, {"categories": [], "id": 222222222222}, ]