From 71578d926e3086493ebc10d4a414e9224f73917c Mon Sep 17 00:00:00 2001 From: meeb Date: Mon, 25 Sep 2023 18:31:32 +1000 Subject: [PATCH] fix tests after subs lang pr --- tubesync/sync/tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tubesync/sync/tests.py b/tubesync/sync/tests.py index 5795b9b..f303c88 100644 --- a/tubesync/sync/tests.py +++ b/tubesync/sync/tests.py @@ -183,7 +183,8 @@ class FrontEndTestCase(TestCase): 'source_acodec': 'OPUS', 'prefer_60fps': False, 'prefer_hdr': False, - 'fallback': 'f' + 'fallback': 'f', + 'sub_langs': 'en', } response = c.post('/source-add', data) self.assertEqual(response.status_code, 302) @@ -224,7 +225,8 @@ class FrontEndTestCase(TestCase): 'source_acodec': Source.SOURCE_ACODEC_OPUS, 'prefer_60fps': False, 'prefer_hdr': False, - 'fallback': Source.FALLBACK_FAIL + 'fallback': Source.FALLBACK_FAIL, + 'sub_langs': 'en', } response = c.post(f'/source-update/{source_uuid}', data) self.assertEqual(response.status_code, 302) @@ -253,7 +255,8 @@ class FrontEndTestCase(TestCase): 'source_acodec': Source.SOURCE_ACODEC_OPUS, 'prefer_60fps': False, 'prefer_hdr': False, - 'fallback': Source.FALLBACK_FAIL + 'fallback': Source.FALLBACK_FAIL, + 'sub_langs': 'en', } response = c.post(f'/source-update/{source_uuid}', data) self.assertEqual(response.status_code, 302)