Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Correct column order in audio tests
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat committed Jun 29, 2021
1 parent 37caaf9 commit e46dd39
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/cc_catalog_airflow/dags/common/storage/test_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ def test_create_tsv_row_creates_alt_audio_files(
'agreatsong',
'{"description": "cat song"}',
'{"name": "tag1", "provider": "testing"}',
'testing_provider',
'testing_source',
'provider_api',
'100',
'\\N',
'\\N',
Expand All @@ -271,9 +274,6 @@ def test_create_tsv_row_creates_alt_audio_files(
'[{"url": '
'"http://alternative.com/audio.mp3", "filesize": "123", "bit_rate": "41000", '
'"sample_rate": "16000"}]',
'testing_provider',
'testing_source',
'provider_api',

]) + '\n'
assert actual_row == expected_row
Expand Down Expand Up @@ -308,6 +308,9 @@ def test_create_tsv_row_creates_audio_set(
'agreatsong',
'{"description": "cat song"}',
'{"name": "tag1", "provider": "testing"}',
'testing_provider',
'testing_source',
'provider_api',
'100',
'\\N',
'\\N',
Expand All @@ -316,10 +319,6 @@ def test_create_tsv_row_creates_audio_set(
'{"audio_set": "test_audio_set", "set_url": "test.com", '
'"set_position": "1", "set_thumbnail": "thumbnail.jpg"}',
'\\N',
'testing_provider',
'testing_source',
'provider_api',

]) + '\n'
assert actual_row == expected_row

Expand Down Expand Up @@ -472,6 +471,9 @@ def mock_validate_url(url_string):
'agreatsong',
'{"description": "a song about cat"}',
'[{"name": "tag1", "provider": "testing"}]',
'testing_provider',
'testing_source',
'provider_api',
'200',
'16000',
'44100',
Expand All @@ -480,8 +482,5 @@ def mock_validate_url(url_string):
'{"audio_set": "album", "set_position": "1", "set_url": "https://album.com/", '
'"set_thumbnail": "https://album.com/thumbnail.jpg"}',
'\\N',
'testing_provider',
'testing_source',
'provider_api'
]) + '\n'
assert expect_row == actual_row

0 comments on commit e46dd39

Please sign in to comment.