File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,6 @@ def getconn() -> pymysql.connections.Connection:
5050 return pool
5151
5252
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-
6753def test_multiple_connectors () -> None :
6854 """Test that same Cloud SQL instance can connect with two Connector objects."""
6955 first_connector = Connector ()
You can’t perform that action at this time.
0 commit comments