mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-03 22:20:28 +03:00 
			
		
		
		
	add test of Android TV "activity banner" graphic
!491 https://developer.android.com/guide/topics/manifest/activity-element.html#banner https://developer.android.com/training/tv/start/start.html#banner
This commit is contained in:
		
							parent
							
								
									0cea73cd2f
								
							
						
					
					
						commit
						673a3517d3
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -292,11 +292,16 @@ class UpdateTest(unittest.TestCase):
 | 
			
		|||
    def test_scan_apk(self):
 | 
			
		||||
        config = dict()
 | 
			
		||||
        fdroidserver.common.fill_config_defaults(config)
 | 
			
		||||
        fdroidserver.common.config = config
 | 
			
		||||
        fdroidserver.update.config = config
 | 
			
		||||
        os.chdir(os.path.join(localmodule, 'tests'))
 | 
			
		||||
        if os.path.basename(os.getcwd()) != 'tests':
 | 
			
		||||
            raise Exception('This test must be run in the "tests/" subdir')
 | 
			
		||||
 | 
			
		||||
        apk_info = fdroidserver.update.scan_apk('repo/duplicate.permisssions_9999999.apk')
 | 
			
		||||
        self.assertEqual(apk_info['icons_src'], {'160': 'res/drawable/ic_launcher.png',
 | 
			
		||||
                                                 '-1': 'res/drawable/ic_launcher.png'})
 | 
			
		||||
 | 
			
		||||
        apk_info = fdroidserver.update.scan_apk('org.dyndns.fules.ck_20.apk')
 | 
			
		||||
        self.assertEqual(apk_info['icons_src'], {'240': 'res/drawable-hdpi-v4/icon_launcher.png',
 | 
			
		||||
                                                 '120': 'res/drawable-ldpi-v4/icon_launcher.png',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue