From 9d405738c07e7204e068d04953afb62d8494c460 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Thu, 27 Jun 2024 07:28:50 -0700 Subject: [PATCH] chore(tests): Remove unnecessary mock (#29386) --- tests/integration_tests/databases/api_tests.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/integration_tests/databases/api_tests.py b/tests/integration_tests/databases/api_tests.py index 9f9882c99..d4a1ac08c 100644 --- a/tests/integration_tests/databases/api_tests.py +++ b/tests/integration_tests/databases/api_tests.py @@ -839,16 +839,12 @@ class TestDatabaseApi(SupersetTestCase): db.session.delete(model) db.session.commit() - @mock.patch( - "superset.commands.database.test_connection.TestConnectionDatabaseCommand.run", - ) @mock.patch("superset.models.core.Database.get_all_catalog_names") @mock.patch("superset.models.core.Database.get_all_schema_names") def test_if_ssh_tunneling_flag_is_not_active_it_raises_new_exception( self, mock_get_all_schema_names, mock_get_all_catalog_names, - mock_test_connection_database_command_run, ): """ Database API: Test raises SSHTunneling feature flag not enabled