File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ def openapi_schema():
3737    return  generator .get_schema (request = drf_request )
3838
3939
40- def  test_migrations_okay (apps , app_config , ** kwargs ):
40+ def  test_migrations_okay (apps = None , app_config = None , ** kwargs ):
4141    """This test is not about the code, but for verifying your own state. 
4242
4343    If you are not migrated to the correct state, this may hopefully alert you. 
4444    This is targeted toward situations like switching branches. 
4545    """ 
46-     if  app_config .label  !=  'test_app' :
46+     if  ( not   apps )  or  ( not   app_config )  or   app_config .label  !=  'test_app' :
4747        return   # so that it is only ran once 
4848    disk_steps  =  defaultdict (set )
4949    app_exceptions  =  {'default' : 'auth' , 'social_auth' : 'social_django' }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments