Skip to content

Commit d58b76f

Browse files
committed
feat: remove test_connector_with_credentials system test
1 parent 6ecf894 commit d58b76f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/system/test_connector_object.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import os
2121
from threading import Thread
2222

23-
import google.auth
2423
import pymysql
2524
import pytest
2625
import 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-
6752
def test_multiple_connectors() -> None:
6853
"""Test that same Cloud SQL instance can connect with two Connector objects."""
6954
first_connector = Connector()

0 commit comments

Comments
 (0)