File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 2020import  os 
2121from  threading  import  Thread 
2222
23- import  google .auth 
2423import  pymysql 
2524import  pytest 
2625import  sqlalchemy 
@@ -50,20 +49,6 @@ def getconn() -> pymysql.connections.Connection:
5049    return  pool 
5150
5251
53- def  test_connector_with_credentials () ->  None :
54-     """Test Connector object connection with credentials loaded from file.""" 
55-     credentials , _  =  google .auth .load_credentials_from_file (
56-         os .environ ["GOOGLE_APPLICATION_CREDENTIALS" ]
57-     )
58-     with  Connector (credentials = credentials ) as  connector :
59-         pool  =  init_connection_engine (connector )
60- 
61-         with  pool .connect () as  conn :
62-             result  =  conn .execute (sqlalchemy .text ("SELECT 1" )).fetchone ()
63-             assert  isinstance (result [0 ], int )
64-             assert  result [0 ] ==  1 
65- 
66- 
6752def  test_multiple_connectors () ->  None :
6853    """Test that same Cloud SQL instance can connect with two Connector objects.""" 
6954    first_connector  =  Connector ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments