"""Mock graphql gateway to use in dev AWS account.""" RESULT = [ { 'id': 'f67b0892-f0bc-4575-b23e-59566ccb44bc', 'labelParticipants': { 'labelParticipants': [ {'uuid': '3115496a-b516-46b8-92dc-7faf1a722889'}, {'uuid': 'e36f2773-e483-41f6-a621-1cdda31ae196'}, {'uuid': '2412988e-c5d2-4c6a-89c5-1724779296bf'}, {'uuid': '70ccc7ec-f7d9-4acb-bfa7-1b423205c07b'}, {'uuid': '41b38d5c-0c18-4933-97dc-b94d225616a2'}, {'uuid': '698dc37c-3ca4-4e25-b890-4b25c832ce2b'}, {'uuid': 'e1366f4c-8421-4295-bc56-cff52b5dcdad'}, {'uuid': '761ea7dc-df32-4640-af35-b35176a5edd7'}, {'uuid': '4793bd73-2e60-4175-8b97-e145f36f0356'} ] }, 'publicParticipantChartmetric': { 'accountStatsV2': [ { 'platform': 'spotify', 'url': 'https://open.spotify.com/artist/46SqMLtuMApmIOfROPpWSz', 'followers': 12402, 'monthlyListeners': 237 }, { 'platform': 'deezer', 'url': 'https://deezer.com/artist/118011532', 'followers': 34, 'monthlyListeners': None }, { 'platform': 'tiktok', 'url': 'https://www.tiktok.com/@bts_official_bighit', 'followers': 38100000, 'monthlyListeners': None }, { 'platform': 'soundcloud', 'url': 'https://soundcloud.com/bangtan', 'followers': 3746486, 'monthlyListeners': None }, { 'platform': 'deezer', 'url': 'https://deezer.com/artist/6982223', 'followers': 2438073, 'monthlyListeners': None }, { 'platform': 'deezer', 'url': 'https://deezer.com/artist/68496672', 'followers': 11492, 'monthlyListeners': None }, { 'platform': 'facebook', 'url': 'https://www.facebook.com/bangtan.official', 'followers': 18723978, 'monthlyListeners': None }, { 'platform': 'twitter', 'url': 'https://twitter.com/BTS_twt', 'followers': 37620581, 'monthlyListeners': None }, { 'platform': 'youtube', 'url': 'https://www.youtube.com/user/BANGTANTV', 'followers': 54200000, 'monthlyListeners': None }, { 'platform': 'instagram', 'url': 'https://www.instagram.com/bts.bighitofficial/', 'followers': 46036334, 'monthlyListeners': None }, { 'platform': 'spotify', 'url': 'https://open.spotify.com/artist/3Nrfpe0tUJi4K4DXYWgMUX', 'followers': 35920544, 'monthlyListeners': 36346449 } ] } } ] MOCK_GLOBAL_PARTICIPANT_DATA_GQL_RESPONSE_BY_SPOTIFY_ID = { 'globalParticipantBySpotifyId': RESULT} MOCK_GLOBAL_PARTICIPANT_DATA_GQL_RESPONSE_BY_SOCIAL_ACCOUNT_URL = { 'globalParticipantBySocialAccountUrl': RESULT} def get_global_participant_data(test_data: str) -> dict: """Get get global participant data. Args: test_data (str): which test data to return. Returns: dict: mock result from graphql gateway """ if test_data == 'spotify': return MOCK_GLOBAL_PARTICIPANT_DATA_GQL_RESPONSE_BY_SPOTIFY_ID elif test_data == 'instagram': return MOCK_GLOBAL_PARTICIPANT_DATA_GQL_RESPONSE_BY_SOCIAL_ACCOUNT_URL else: return {'globalParticipantBySpotifyId': []}