From d58b76f185c2dbb5809e60ce11bf8e2a1e1a8357 Mon Sep 17 00:00:00 2001 From: kgala2 Date: Fri, 28 Mar 2025 10:41:31 -0700 Subject: [PATCH] feat: remove test_connector_with_credentials system test --- tests/system/test_connector_object.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/system/test_connector_object.py b/tests/system/test_connector_object.py index 258b80aa..ffd8b5f1 100644 --- a/tests/system/test_connector_object.py +++ b/tests/system/test_connector_object.py @@ -20,7 +20,6 @@ import os from threading import Thread -import google.auth import pymysql import pytest import sqlalchemy @@ -50,20 +49,6 @@ def getconn() -> pymysql.connections.Connection: return pool -def test_connector_with_credentials() -> None: - """Test Connector object connection with credentials loaded from file.""" - credentials, _ = google.auth.load_credentials_from_file( - os.environ["GOOGLE_APPLICATION_CREDENTIALS"] - ) - with Connector(credentials=credentials) as connector: - pool = init_connection_engine(connector) - - with pool.connect() as conn: - result = conn.execute(sqlalchemy.text("SELECT 1")).fetchone() - assert isinstance(result[0], int) - assert result[0] == 1 - - def test_multiple_connectors() -> None: """Test that same Cloud SQL instance can connect with two Connector objects.""" first_connector = Connector()