"""Provides test data for track update.""" from backend.constants import ownership_type from tests.testutils.constants import TEST_PRODUCT_ID TUID = 1 track_update_data = { 'tuid': TUID, 'product_id': TEST_PRODUCT_ID, 'track_name': 'Make Nine Lives Great Again', 'version': 'Radio Edit', 'meta_language_code': 'ENG', 'p_info': '2017 Meow Meow', 'explicit': 'C', 'ownership_rights': ownership_type.ORIGINAL_OWNER, 'recording_country_id': 2, 'original_rights_holder_country_id': 5, 'third_party_publisher': None, 'us_publishing_obligation': 'Composition', 'preview_start_time': 1234567890 } track_update_response = { 'tuid': TUID, 'product_id': TEST_PRODUCT_ID, 'track_name': 'Make Nine Lives Great Again', 'version': 'Radio Edit', 'meta_language_code': 'ENG', 'isrc': 'US1234567890', 'p_info': '2017 Meow Meow', 'explicit': 'C', 'volume_number': 1, 'track_number': 9, 'track_type': 'music', 'offer_type': 'all', 'duration_minutes': None, 'duration_seconds': None, 'upc': 123456789012, 'ownership_rights': ownership_type.ORIGINAL_OWNER, 'recording_country_id': 2, 'original_rights_holder_country_id': 5, 'third_party_publisher': None, 'us_publishing_obligation': 'Composition', 'preview_start_time': 1234567890, 'artists': [ {'artist_info_id': None, 'track_artist_id': 1, 'type': 'performer', 'name': 'Snowball'}, {'artist_info_id': None, 'track_artist_id': 2, 'type': 'featuring', 'name': 'Catatomic'}, {'artist_info_id': None, 'track_artist_id': 3, 'type': 'remixer', 'name': 'Purrfect'} ], 'publishers': [ {'track_publisher_id': 1, 'type': 'publisher', 'name': 'Kitty Cat Productions'}, {'track_publisher_id': 2, 'type': 'publisher', 'name': 'Meow Meow Meow'} ], 'writers': [ { 'track_writer_id': 1, 'type': 'writer', 'name': 'Furball', 'artist_info_id': None }, { 'track_writer_id': 2, 'type': 'writer', 'name': 'Garfield', 'artist_info_id': None } ], 'localizations': [ { 'tuid': TUID, 'language_id': 2, 'track_name': 'Gangsta\'s Paradise', 'version': 'Explicit', 'artists': [{ 'name': 'Coolio', 'track_artist_id': 3, 'type': 'remixer' }] }, { 'tuid': TUID, 'language_id': 3, 'track_name': 'Gangsta\'s Paradise', 'version': 'Explicit', 'artists': [{ 'name': 'Coolio', 'track_artist_id': 3, 'type': 'remixer' }] } ], # language is none because the data from the language table # should never be updated 'language': None, 'focus_track': 'N', 'focus_track_start_date': None, 'focus_track_end_date': None, 'is_owner': 'y' }