From 740df4b61458a01544c886a7054b219d574bc374 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Wed, 20 Nov 2024 13:35:14 -0800 Subject: [PATCH] Rm unnecessary mocks --- .../tests/test_mysqlclient_integration.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py b/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py index d3927b9102..5c375ac4aa 100644 --- a/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py +++ b/instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py @@ -126,7 +126,6 @@ def test_instrument_connection_with_dbapi_sqlcomment_enabled(self): ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -163,7 +162,6 @@ def test_instrument_connection_with_dbapi_sqlcomment_enabled_with_options( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -205,7 +203,6 @@ def test_instrument_connection_with_dbapi_sqlcomment_not_enabled_default( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -252,7 +249,6 @@ def test_instrument_with_dbapi_sqlcomment_enabled( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -290,7 +286,6 @@ def test_instrument_with_dbapi_sqlcomment_enabled_with_options( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor @@ -333,7 +328,6 @@ def test_instrument_with_dbapi_sqlcomment_not_enabled_default( ) mock_connect_module._mysql.get_client_info.return_value = "foobaz" mock_cursor = mock_connect_module.connect().cursor() - mock_cursor.execute = mock.MagicMock() mock_connection = mock.MagicMock() mock_connection.cursor.return_value = mock_cursor