# serializer version: 1
# name: test_get_tracks
  list([
    ArtRelationsTrack(
      track_id=12345,
      upc=75679660923,
      isrc='USAT22403171',
      volume_number=1,
      track_number=1,
      track_name='Volume 1 Track 1',
      track_version=None,
      duration_seconds=14,
      preview_start_time_seconds=0,
      lyrics_explicitness=<LyricsExplicitness.CLEAN: 'C'>,
      p_line='2024 Some Label',
      track_type=<TrackTypes.MUSIC: 'music'>,
      offer_type=<TrackOfferType.ALL: 'all'>,
      language_of_performance_ietf_rfc_5646_code=None,
      spatial_isrc='spatial_isrc',
    ),
    ArtRelationsTrack(
      track_id=12347,
      upc=75679660923,
      isrc='USAT22403172',
      volume_number=1,
      track_number=2,
      track_name='Volume 1 Track 2',
      track_version=None,
      duration_seconds=120,
      preview_start_time_seconds=0,
      lyrics_explicitness=<LyricsExplicitness.EXPLICIT: 'Y'>,
      p_line='2022 Cool Label',
      track_type=<TrackTypes.MUSIC: 'music'>,
      offer_type=<TrackOfferType.TRACK_DOWNLOAD_STREAM: 'track_download_stream'>,
      language_of_performance_ietf_rfc_5646_code='zxx',
      spatial_isrc=None,
    ),
    ArtRelationsTrack(
      track_id=123410,
      upc=75679660923,
      isrc='USAT22403175',
      volume_number=1,
      track_number=3,
      track_name='Volume 1 Track 3',
      track_version=None,
      duration_seconds=128,
      preview_start_time_seconds=0,
      lyrics_explicitness=<LyricsExplicitness.EXPLICIT: 'Y'>,
      p_line='2022 Cool Label',
      track_type=<TrackTypes.MUSIC: 'music'>,
      offer_type=<TrackOfferType.TRACK_DOWNLOAD_STREAM: 'track_download_stream'>,
      language_of_performance_ietf_rfc_5646_code='zxx',
      spatial_isrc=None,
    ),
    ArtRelationsTrack(
      track_id=12348,
      upc=75679660923,
      isrc='USAT22403173',
      volume_number=2,
      track_number=1,
      track_name='Volume 2 Track 1',
      track_version=None,
      duration_seconds=210,
      preview_start_time_seconds=35,
      lyrics_explicitness=<LyricsExplicitness.NOT_EXPLICIT: 'N'>,
      p_line='ASDF Label',
      track_type=<TrackTypes.MUSIC: 'music'>,
      offer_type=<TrackOfferType.STREAM_ONLY: 'stream_only'>,
      language_of_performance_ietf_rfc_5646_code='zh',
      spatial_isrc=None,
    ),
    ArtRelationsTrack(
      track_id=12349,
      upc=75679660923,
      isrc='USAT22403174',
      volume_number=2,
      track_number=2,
      track_name='Volume 2 Track 2',
      track_version='Cool Version',
      duration_seconds=180,
      preview_start_time_seconds=170,
      lyrics_explicitness=<LyricsExplicitness.NOT_EXPLICIT: 'N'>,
      p_line='2021 Unidentified Fruit Label',
      track_type=<TrackTypes.MUSIC: 'music'>,
      offer_type=<TrackOfferType.ALL: 'all'>,
      language_of_performance_ietf_rfc_5646_code='bgc',
      spatial_isrc=None,
    ),
    ArtRelationsTrack(
      track_id=123412,
      upc=75679660923,
      isrc='USAT22403176',
      volume_number=2,
      track_number=3,
      track_name='Volume 2 Track 3',
      track_version=None,
      duration_seconds=180,
      preview_start_time_seconds=170,
      lyrics_explicitness=<LyricsExplicitness.NOT_EXPLICIT: 'N'>,
      p_line='2021 Unidentified Fruit Label',
      track_type=<TrackTypes.MUSIC: 'music'>,
      offer_type=<TrackOfferType.ALL: 'all'>,
      language_of_performance_ietf_rfc_5646_code='bgc',
      spatial_isrc=None,
    ),
  ])
# ---
# name: test_get_tracks_multiple_tracks_too_long_preview
  list([
    dict({
      'input': 15,
      'loc': tuple(
        '75679660923_1_1',
        'preview_start_time_seconds',
      ),
      'msg': 'Value error, preview_start_time_seconds must be less than duration_seconds',
      'type': 'value_error',
    }),
    dict({
      'input': 130,
      'loc': tuple(
        '75679660923_1_2',
        'preview_start_time_seconds',
      ),
      'msg': 'Value error, preview_start_time_seconds must be less than duration_seconds',
      'type': 'value_error',
    }),
  ])
# ---
# name: test_get_tracks_track_missing_duration_fields
  list([
    dict({
      'input': None,
      'loc': tuple(
        '75679660923_1_1',
        'length_minute',
      ),
      'msg': 'Input should be a valid integer',
      'type': 'int_type',
    }),
    dict({
      'input': None,
      'loc': tuple(
        '75679660923_1_1',
        'length_seconds',
      ),
      'msg': 'Input should be a valid integer',
      'type': 'int_type',
    }),
  ])
# ---
# name: test_get_tracks_track_too_long_preview
  list([
    dict({
      'input': 15,
      'loc': tuple(
        '75679660923_1_1',
        'preview_start_time_seconds',
      ),
      'msg': 'Value error, preview_start_time_seconds must be less than duration_seconds',
      'type': 'value_error',
    }),
  ])
# ---
