mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	AbstractBaseTest class for sharing setUp and tearDown in tests
This commit is contained in:
		
							parent
							
								
									f269232b96
								
							
						
					
					
						commit
						36007d50e5
					
				
					 2 changed files with 13 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -46,8 +46,8 @@ def _mock_common_module_options_instance():
 | 
			
		|||
    fdroidserver.common.options.verbose = False
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class CommonTest(unittest.TestCase):
 | 
			
		||||
    '''fdroidserver/common.py'''
 | 
			
		||||
class SetUpTearDownMixin:
 | 
			
		||||
    """A mixin with no tests in it for shared setUp and tearDown."""
 | 
			
		||||
 | 
			
		||||
    def setUp(self):
 | 
			
		||||
        logging.basicConfig(level=logging.DEBUG)
 | 
			
		||||
| 
						 | 
				
			
			@ -77,6 +77,10 @@ class CommonTest(unittest.TestCase):
 | 
			
		|||
        if os.path.exists(self.tmpdir):
 | 
			
		||||
            shutil.rmtree(self.tmpdir)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class CommonTest(SetUpTearDownMixin, unittest.TestCase):
 | 
			
		||||
    '''fdroidserver/common.py'''
 | 
			
		||||
 | 
			
		||||
    def test_yaml_1_2(self):
 | 
			
		||||
        """Return a ruamel.yaml instance that supports YAML 1.2
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -3307,7 +3311,7 @@ class SignerExtractionTest(unittest.TestCase):
 | 
			
		|||
            )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class IgnoreApksignerV33Test(CommonTest):
 | 
			
		||||
class IgnoreApksignerV33Test(SetUpTearDownMixin, unittest.TestCase):
 | 
			
		||||
    """apksigner v33 should be entirely ignored
 | 
			
		||||
 | 
			
		||||
    https://gitlab.com/fdroid/fdroidserver/-/issues/1253
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue