mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[test/helper] Allow dicts for mincount
This commit is contained in:
		@@ -133,8 +133,8 @@ def expect_info_dict(self, got_dict, expected_dict):
 | 
				
			|||||||
            elif isinstance(expected, compat_str) and expected.startswith('mincount:'):
 | 
					            elif isinstance(expected, compat_str) and expected.startswith('mincount:'):
 | 
				
			||||||
                got = got_dict.get(info_field)
 | 
					                got = got_dict.get(info_field)
 | 
				
			||||||
                self.assertTrue(
 | 
					                self.assertTrue(
 | 
				
			||||||
                    isinstance(got, list),
 | 
					                    isinstance(got, (list, dict)),
 | 
				
			||||||
                    'Expected field %s to be a list, but it is of type %s' % (
 | 
					                    'Expected field %s to be a list or a dict, but it is of type %s' % (
 | 
				
			||||||
                        info_field, type(got).__name__))
 | 
					                        info_field, type(got).__name__))
 | 
				
			||||||
                expected_num = int(expected.partition(':')[2])
 | 
					                expected_num = int(expected.partition(':')[2])
 | 
				
			||||||
                assertGreaterEqual(
 | 
					                assertGreaterEqual(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user