From e46dd392ece8ef8f4a624735e59cc406e3d8fb20 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 29 Jun 2021 18:53:17 +0300 Subject: [PATCH] Correct column order in audio tests Signed-off-by: Olga Bulat --- .../dags/common/storage/test_audio.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/cc_catalog_airflow/dags/common/storage/test_audio.py b/src/cc_catalog_airflow/dags/common/storage/test_audio.py index a39668ca9..690111867 100644 --- a/src/cc_catalog_airflow/dags/common/storage/test_audio.py +++ b/src/cc_catalog_airflow/dags/common/storage/test_audio.py @@ -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', @@ -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 @@ -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', @@ -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 @@ -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', @@ -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