mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 22:55:18 +00:00 
			
		
		
		
	[cleanup] Misc (#8598)
Authored by: bashonly, pukkandan, seproDev, Grub4K Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
This commit is contained in:
		| @@ -730,7 +730,7 @@ class TestYoutubeDL(unittest.TestCase): | ||||
|                 self.assertEqual(got_dict.get(info_field), expected, info_field) | ||||
|             return True | ||||
| 
 | ||||
|         test('%()j', (expect_same_infodict, str)) | ||||
|         test('%()j', (expect_same_infodict, None)) | ||||
| 
 | ||||
|         # NA placeholder | ||||
|         NA_TEST_OUTTMPL = '%(uploader_date)s-%(width)d-%(x|def)s-%(id)s.%(ext)s' | ||||
|   | ||||
| @@ -9,7 +9,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||||
| 
 | ||||
| 
 | ||||
| from test.helper import FakeYDL, report_warning | ||||
| from yt_dlp.update import Updater, UpdateInfo | ||||
| from yt_dlp.update import UpdateInfo, Updater | ||||
| 
 | ||||
| 
 | ||||
| # XXX: Keep in sync with yt_dlp.update.UPDATE_SOURCES | ||||
|   | ||||
| @@ -2110,6 +2110,8 @@ Line 1 | ||||
|         self.assertEqual(traverse_obj(_TEST_DATA, (..., {str_or_none})), | ||||
|                          [item for item in map(str_or_none, _TEST_DATA.values()) if item is not None], | ||||
|                          msg='Function in set should be a transformation') | ||||
|         self.assertEqual(traverse_obj(_TEST_DATA, ('fail', {lambda _: 'const'})), 'const', | ||||
|                          msg='Function in set should always be called') | ||||
|         if __debug__: | ||||
|             with self.assertRaises(Exception, msg='Sets with length != 1 should raise in debug'): | ||||
|                 traverse_obj(_TEST_DATA, set()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Sawicki
					Simon Sawicki