mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[googlesearch] Move test to extractor
This commit is contained in:
		| @@ -142,6 +142,11 @@ def generator(test_case): | ||||
|                     'Expected at least %d in playlist %s, but got only %d' % ( | ||||
|                         test_case['playlist_mincount'], test_case['url'], | ||||
|                         len(res_dict['entries']))) | ||||
|             if 'playlist_count' in test_case: | ||||
|                 self.assertEqual( | ||||
|                     len(res_dict['entries']), | ||||
|                     test_case['playlist_count'], | ||||
|                     'Expected at %d in playlist %s, but got %d.') | ||||
|  | ||||
|             for tc in test_cases: | ||||
|                 tc_filename = get_tc_filename(tc) | ||||
|   | ||||
| @@ -310,15 +310,6 @@ class TestPlaylists(unittest.TestCase): | ||||
|         self.assertEqual(result['title'], 'Always/Never: A Little-Seen Movie About Nuclear Command and Control : The New Yorker') | ||||
|         self.assertEqual(len(result['entries']), 3) | ||||
|  | ||||
|     def test_GoogleSearch(self): | ||||
|         dl = FakeYDL() | ||||
|         ie = GoogleSearchIE(dl) | ||||
|         result = ie.extract('gvsearch15:python language') | ||||
|         self.assertIsPlaylist(result) | ||||
|         self.assertEqual(result['id'], 'python language') | ||||
|         self.assertEqual(result['title'], 'python language') | ||||
|         self.assertEqual(len(result['entries']), 15) | ||||
|  | ||||
|     def test_generic_rss_feed(self): | ||||
|         dl = FakeYDL() | ||||
|         ie = GenericIE(dl) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister