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 @@ -43,13 +43,13 @@ def openapi_schema():
4343    return  generator .get_schema (request = drf_request )
4444
4545
46- def  test_migrations_okay (apps , app_config , ** kwargs ):
46+ def  test_migrations_okay (apps = None , app_config = None , ** kwargs ):
4747    """This test is not about the code, but for verifying your own state. 
4848
4949    If you are not migrated to the correct state, this may hopefully alert you. 
5050    This is targeted toward situations like switching branches. 
5151    """ 
52-     if  app_config .label  !=  'test_app' :
52+     if  ( not   apps )  or  ( not   app_config )  or   app_config .label  !=  'test_app' :
5353        return   # so that it is only ran once 
5454    disk_steps  =  defaultdict (set )
5555    app_exceptions  =  {'default' : 'auth' , 'social_auth' : 'social_django' }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments