Skip to content

Commit

Permalink
Rm unnecessary mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Nov 20, 2024
1 parent 606ba07 commit 740df4b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 740df4b

Please sign in to comment.