mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-04 05:25:11 +02:00
[test_utils] add test for option with not str value
This commit is contained in:
parent
cb55908e51
commit
5f2c2b7936
@ -968,6 +968,7 @@ def test_cli_option(self):
|
|||||||
self.assertEqual(cli_option({'proxy': '127.0.0.1:3128'}, '--proxy', 'proxy'), ['--proxy', '127.0.0.1:3128'])
|
self.assertEqual(cli_option({'proxy': '127.0.0.1:3128'}, '--proxy', 'proxy'), ['--proxy', '127.0.0.1:3128'])
|
||||||
self.assertEqual(cli_option({'proxy': None}, '--proxy', 'proxy'), [])
|
self.assertEqual(cli_option({'proxy': None}, '--proxy', 'proxy'), [])
|
||||||
self.assertEqual(cli_option({}, '--proxy', 'proxy'), [])
|
self.assertEqual(cli_option({}, '--proxy', 'proxy'), [])
|
||||||
|
self.assertEqual(cli_option({'retries': 10}, '--retries', 'retries'), ['--retries', '10'])
|
||||||
|
|
||||||
def test_cli_valueless_option(self):
|
def test_cli_valueless_option(self):
|
||||||
self.assertEqual(cli_valueless_option(
|
self.assertEqual(cli_valueless_option(
|
||||||
|
Loading…
Reference in New Issue
Block a user