"""Conftest.""" from common.constants.artist_role import PRIMARY_ARTIST import pytest @pytest.fixture def context_event(): """State machine input event.""" return { 'correlation_id': 'a20832c3-eae1-42b0-ad3a-eff4abaccbad', 'project': { 'name': 'Fritz Wunderlich CATALOGUE project', 'project_code': '1074641', 'project_id': None, 'artist': { 'name': 'Fritz Wunderlich', 'spotify_uri': 'spotify:artist:3jp4zawfeVYVpSzO2Yujbv', 'apple_id': '695087', 'roles': None, }, }, 'product': { 'product_id': None, 'upc': '886443197770', 'product_name': 'Die Zirkusprinzessin/Zwei M\u00e4rchenaugen', 'grid': 'A10301A0001336586R', 'display_artists': [ { 'name': 'Fritz Wunderlich', 'spotify_uri': 'spotify:artist:3jp4zawfeVYVpSzO2Yujbv', 'apple_id': '695087', 'roles': ['PRIMARY_ARTIST'], } ], 'vendor_id': 34563, 'subaccount_id': 57803, 'not_for_distribution': 'SMEAnalyticsDummy', 'parent_repertoire_owner_code': '0031', 'repertoire_owner_code': 'A929', }, 'tracks': [ { 'isrc': 'DEE476400062', 'track_name': 'Zwei M\u00e4rchenaugen', 'duration': None, 'sequence_number': 2, 'volume': 1, 'explicit': None, 'display_artists': [ { 'name': 'Alois Melichar', 'spotify_uri': None, 'apple_id': None, 'roles': ['PRIMARY_ARTIST'], }, { 'name': 'Fritz Wunderlich', 'spotify_uri': 'spotify:artist:3jp4zawfeVYVpSzO2Yujbv', 'apple_id': '695087', 'roles': ['PRIMARY_ARTIST'], }, ], }, { 'isrc': 'DEE470500867', 'track_name': 'Die Zirkusprinzessin', 'duration': None, 'sequence_number': 1, 'volume': 1, 'explicit': None, 'display_artists': [ { 'name': 'Alois Melichar', 'spotify_uri': None, 'apple_id': None, 'roles': ['PRIMARY_ARTIST'], }, { 'name': 'Fritz Wunderlich', 'spotify_uri': 'spotify:artist:3jp4zawfeVYVpSzO2Yujbv', 'apple_id': '695087', 'roles': ['PRIMARY_ARTIST'], }, ], }, ], 'label_participants': None, } @pytest.fixture() def serialized_participant(): """Serialize S3 participant.""" return { 'name': 'Giveon', 'sequence_number': 1, 'apple_id': '1A', 'spotify_uri': '1S', 'roles': [PRIMARY_ARTIST], } @pytest.fixture() def product_display_artist_participant(): """Serialize S3 participant.""" return { 'name': 'Fritz Wunderlich', 'sequence_number': 1, 'apple_id': '1A', 'spotify_uri': '1S', 'roles': [PRIMARY_ARTIST], }