diff options
author | Jesús <heckyel@hyperbola.info> | 2022-03-30 01:24:15 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-03-30 01:24:15 +0800 |
commit | 950cc067b8c41ac246deb4725177a372c95d8341 (patch) | |
tree | 66d5284ff86faec8c3000be1e7d0bd856b4c4dbe /test/test_YoutubeDL.py | |
parent | 7a74bc5d1e54299e51b73492e09c70da994f4b35 (diff) | |
parent | e7870111e83033e0ac728d5a2d565d1eb146c335 (diff) | |
download | hypervideo-pre-950cc067b8c41ac246deb4725177a372c95d8341.tar.lz hypervideo-pre-950cc067b8c41ac246deb4725177a372c95d8341.tar.xz hypervideo-pre-950cc067b8c41ac246deb4725177a372c95d8341.zip |
updated from upstream | 30/03/2022 at 01:24
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 7637297be..c9108c5b6 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -818,6 +818,8 @@ class TestYoutubeDL(unittest.TestCase): test('%(id&foo)s.bar', 'foo.bar') test('%(title&foo)s.bar', 'NA.bar') test('%(title&foo|baz)s.bar', 'baz.bar') + test('%(x,id&foo|baz)s.bar', 'foo.bar') + test('%(x,title&foo|baz)s.bar', 'baz.bar') # Laziness def gen(): @@ -931,7 +933,7 @@ class TestYoutubeDL(unittest.TestCase): res = get_videos() self.assertEqual(res, ['1', '2']) - def f(v): + def f(v, incomplete): if v['id'] == '1': return None else: |