Fix Tests

This commit is contained in:
Pablo Takara 2025-06-26 18:15:54 +02:00
parent 5523d615d0
commit f993e6bd21
No known key found for this signature in database
GPG Key ID: 63381DDFBB2BF725

View File

@ -70,7 +70,7 @@ class TestGetConnectionURL(unittest.TestCase):
hostPort="localhost:3306",
databaseSchema="openmetadata_db",
)
engine_connection = MySQLConnection(connection).get_client()
engine_connection = MySQLConnection(connection).client
self.assertEqual(
str(engine_connection.url),
"mysql+pymysql://openmetadata_user:openmetadata_password@localhost:3306/openmetadata_db",
@ -93,7 +93,7 @@ class TestGetConnectionURL(unittest.TestCase):
"get_token",
return_value=AccessToken(token="mocked_token", expires_on=100),
):
engine_connection = MySQLConnection(connection).get_client()
engine_connection = MySQLConnection(connection).client
self.assertEqual(
str(engine_connection.url),
"mysql+pymysql://openmetadata_user:mocked_token@localhost:3306/openmetadata_db",