diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-19 06:30:25 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-19 06:30:25 +0530 |
commit | dd2a987d3f412dc61422ad13cf7b60920be8af6e (patch) | |
tree | df278f2d1a9d14d4e32c10b10a66d146d805c86d /test/test_YoutubeDL.py | |
parent | 9222c38182604d0a9826291509e0719b45b3faac (diff) | |
download | hypervideo-pre-dd2a987d3f412dc61422ad13cf7b60920be8af6e.tar.lz hypervideo-pre-dd2a987d3f412dc61422ad13cf7b60920be8af6e.tar.xz hypervideo-pre-dd2a987d3f412dc61422ad13cf7b60920be8af6e.zip |
[tests] Fix tests
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 5a0dabeb6..63ef50e1a 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -137,7 +137,7 @@ class TestFormatSelection(unittest.TestCase): test('webm/mp4', '47') test('3gp/40/mp4', '35') test('example-with-dashes', 'example-with-dashes') - test('all', '35', 'example-with-dashes', '45', '47', '2') # Order doesn't actually matter for this + test('all', '2', '47', '45', 'example-with-dashes', '35') test('mergeall', '2+47+45+example-with-dashes+35', multi=True) def test_format_selection_audio(self): @@ -520,7 +520,7 @@ class TestFormatSelection(unittest.TestCase): ydl = YDL({'format': 'all[width>=400][width<=600]'}) ydl.process_ie_result(info_dict) downloaded_ids = [info['format_id'] for info in ydl.downloaded_info_dicts] - self.assertEqual(downloaded_ids, ['B', 'C', 'D']) + self.assertEqual(downloaded_ids, ['D', 'C', 'B']) ydl = YDL({'format': 'best[height<40]'}) try: |