mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-06 10:08:36 +02:00
parent
78fde6e339
commit
ec9311c41b
3 changed files with 21 additions and 4 deletions
|
@ -822,7 +822,10 @@ class TestYoutubeDL(unittest.TestCase):
|
|||
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')
|
||||
test('%(title&\n|)s', '\n')
|
||||
test('%(id&a\nb|)s', ('a\nb', 'a b'))
|
||||
test('%(id&hi {:>10} {}|)s', 'hi 1234 1234')
|
||||
test(R'%(id&{0} {}|)s', 'NA')
|
||||
test(R'%(id&{0.1}|)s', 'NA')
|
||||
|
||||
# Laziness
|
||||
def gen():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue