mirror of
https://github.com/apache/superset.git
synced 2026-06-03 14:49:23 +00:00
chore(command): Organize Commands according to SIP-92 (#25850)
This commit is contained in:
@@ -35,8 +35,8 @@ from sqlalchemy.exc import SQLAlchemyError
|
||||
import superset.utils.database
|
||||
import superset.views.utils
|
||||
from superset import dataframe, db, security_manager, sql_lab
|
||||
from superset.charts.commands.exceptions import ChartDataQueryFailedError
|
||||
from superset.charts.data.commands.get_data_command import ChartDataCommand
|
||||
from superset.commands.chart.data.get_data_command import ChartDataCommand
|
||||
from superset.commands.chart.exceptions import ChartDataQueryFailedError
|
||||
from superset.common.db_query_status import QueryStatus
|
||||
from superset.connectors.sqla.models import SqlaTable
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
@@ -1165,7 +1165,7 @@ class TestCore(SupersetTestCase):
|
||||
self.assertIn("Error message", data)
|
||||
|
||||
@pytest.mark.usefixtures("load_energy_table_with_slice")
|
||||
@mock.patch("superset.explore.form_data.commands.create.CreateFormDataCommand.run")
|
||||
@mock.patch("superset.commands.explore.form_data.create.CreateFormDataCommand.run")
|
||||
def test_explore_redirect(self, mock_command: mock.Mock):
|
||||
self.login(username="admin")
|
||||
random_key = "random_key"
|
||||
|
||||
Reference in New Issue
Block a user