"""Shared pytest fixtures.""" import json import pytest @pytest.fixture def mock_event_spotify(): """Sample lambda event.""" with open('tests/sample_event_spotify.json') as f: return json.load(f) @pytest.fixture def mock_event_instagram(): """Sample lambda event.""" with open('tests/sample_event_instagram.json') as f: return json.load(f) @pytest.fixture def mock_global_participant_data(): """get_global_participant_data return value.""" return { 'spotify_id': '3Nrfpe0tUJi4K4DXYWgMUX', 'label_participants': "3115496a-b516-46b8-92dc-7faf1a722889,e36f2773-e483-41f6-a621-1cdda31ae196,2412988e-c5d2-4c6a-89c5-1724779296bf,70ccc7ec-f7d9-4acb-bfa7-1b423205c07b,41b38d5c-0c18-4933-97dc-b94d225616a2,698dc37c-3ca4-4e25-b890-4b25c832ce2b,e1366f4c-8421-4295-bc56-cff52b5dcdad,761ea7dc-df32-4640-af35-b35176a5edd7,4793bd73-2e60-4175-8b97-e145f36f0356", # noqa 'deezer_url': 'https://deezer.com/artist/6982223', 'deezer_followers': 2438073, 'facebook_url': 'https://www.facebook.com/bangtan.official', 'facebook_followers': 18723978, 'instagram_url': 'https://www.instagram.com/bts.bighitofficial/', 'instagram_followers': 46036334, 'soundcloud_url': 'https://soundcloud.com/TEST_BTS_ACCOUNT', 'soundcloud_followers': None, 'spotify_url': 'https://open.spotify.com/artist/3Nrfpe0tUJi4K4DXYWgMUX', 'spotify_followers': 35920544, 'spotify_monthly_listeners': 36346449, 'tiktok_url': 'https://www.tiktok.com/@bts_official_bighit', 'tiktok_followers': 38100000, 'twitter_url': 'https://twitter.com/BTS_twt', 'twitter_followers': 37620581, 'youtube_url': 'https://www.youtube.com/user/BANGTANTV', 'youtube_followers': 54200000 }