From 3c50282fe448a2a749fd3167036b807d9bbb201a Mon Sep 17 00:00:00 2001 From: Vitor Avila Date: Fri, 28 Feb 2025 11:17:55 -0300 Subject: [PATCH] Fixing integration tests --- tests/integration_tests/databases/api_tests.py | 6 +++--- .../integration_tests/security/row_level_security_tests.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration_tests/databases/api_tests.py b/tests/integration_tests/databases/api_tests.py index a525ea522972c..d7c6e2b17fc84 100644 --- a/tests/integration_tests/databases/api_tests.py +++ b/tests/integration_tests/databases/api_tests.py @@ -393,7 +393,7 @@ def test_create_database_with_missing_port_raises_error( ) @mock.patch( - "superset.commands.database.sync_permissions.SyncPermissionsCommand.run_without_transaction", + "superset.commands.database.sync_permissions.SyncPermissionsCommand.run", ) @mock.patch( "superset.commands.database.test_connection.TestConnectionDatabaseCommand.run", @@ -522,7 +522,7 @@ def test_update_database_with_missing_port_raises_error( db.session.commit() @mock.patch( - "superset.commands.database.sync_permissions.SyncPermissionsCommand.run_without_transaction", + "superset.commands.database.sync_permissions.SyncPermissionsCommand.run", ) @mock.patch( "superset.commands.database.test_connection.TestConnectionDatabaseCommand.run", @@ -610,7 +610,7 @@ def test_delete_ssh_tunnel( db.session.commit() @mock.patch( - "superset.commands.database.sync_permissions.SyncPermissionsCommand.run_without_transaction", + "superset.commands.database.sync_permissions.SyncPermissionsCommand.run", ) @mock.patch( "superset.commands.database.test_connection.TestConnectionDatabaseCommand.run", diff --git a/tests/integration_tests/security/row_level_security_tests.py b/tests/integration_tests/security/row_level_security_tests.py index 4b75bb8907c42..b31c4fa136732 100644 --- a/tests/integration_tests/security/row_level_security_tests.py +++ b/tests/integration_tests/security/row_level_security_tests.py @@ -32,7 +32,6 @@ from superset.utils import json from flask_babel import lazy_gettext as _ # noqa: F401 from flask_appbuilder.models.sqla import filters -from tests.conftest import with_config # noqa: F401 from tests.integration_tests.base_tests import SupersetTestCase from tests.integration_tests.constants import ADMIN_USERNAME from tests.integration_tests.fixtures.birth_names_dashboard import (