mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	common: add calculate_gradle_flavor_combination
This commit is contained in:
		
							parent
							
								
									6c054f62ca
								
							
						
					
					
						commit
						e957583337
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3040,6 +3040,11 @@ class CommonTest(SetUpTearDownMixin, unittest.TestCase):
 | 
			
		|||
        p = fdroidserver.common.FDroidPopen(['printenv', 'SOURCE_DATE_EPOCH'])
 | 
			
		||||
        self.assertEqual(int(p.output), int(now.timestamp()))
 | 
			
		||||
 | 
			
		||||
    def test_calculate_gradle_flavor_combination(self):
 | 
			
		||||
        flavors = ['aa', 'BB', 'δδ']
 | 
			
		||||
        combinations = ['aaBBΔδ', 'aaBB', 'aaΔδ', 'aa', 'BBΔδ', 'BB', 'δδ', '']
 | 
			
		||||
        self.assertEqual(fdroidserver.common.calculate_gradle_flavor_combination(flavors), combinations)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
APKS_WITH_JAR_SIGNATURES = (
 | 
			
		||||
    (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue