mirror of
https://github.com/apache/superset.git
synced 2026-06-05 15:49:27 +00:00
chore(command): Organize Commands according to SIP-92 (#25850)
This commit is contained in:
@@ -23,19 +23,19 @@ import yaml
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
|
||||
from superset import db, security_manager
|
||||
from superset.commands.exceptions import CommandInvalidError
|
||||
from superset.commands.importers.exceptions import IncorrectVersionError
|
||||
from superset.connectors.sqla.models import SqlaTable
|
||||
from superset.databases.commands.importers.v1 import ImportDatabasesCommand
|
||||
from superset.datasets.commands.create import CreateDatasetCommand
|
||||
from superset.datasets.commands.exceptions import (
|
||||
from superset.commands.database.importers.v1 import ImportDatabasesCommand
|
||||
from superset.commands.dataset.create import CreateDatasetCommand
|
||||
from superset.commands.dataset.exceptions import (
|
||||
DatasetInvalidError,
|
||||
DatasetNotFoundError,
|
||||
WarmUpCacheTableNotFoundError,
|
||||
)
|
||||
from superset.datasets.commands.export import ExportDatasetsCommand
|
||||
from superset.datasets.commands.importers import v0, v1
|
||||
from superset.datasets.commands.warm_up_cache import DatasetWarmUpCacheCommand
|
||||
from superset.commands.dataset.export import ExportDatasetsCommand
|
||||
from superset.commands.dataset.importers import v0, v1
|
||||
from superset.commands.dataset.warm_up_cache import DatasetWarmUpCacheCommand
|
||||
from superset.commands.exceptions import CommandInvalidError
|
||||
from superset.commands.importers.exceptions import IncorrectVersionError
|
||||
from superset.connectors.sqla.models import SqlaTable
|
||||
from superset.models.core import Database
|
||||
from superset.models.slice import Slice
|
||||
from superset.utils.core import get_example_default_schema
|
||||
@@ -339,7 +339,7 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
db.session.delete(dataset)
|
||||
db.session.commit()
|
||||
|
||||
@patch("superset.datasets.commands.importers.v1.utils.g")
|
||||
@patch("superset.commands.dataset.importers.v1.utils.g")
|
||||
@patch("superset.security.manager.g")
|
||||
@pytest.mark.usefixtures("load_energy_table_with_slice")
|
||||
def test_import_v1_dataset(self, sm_g, utils_g):
|
||||
|
||||
Reference in New Issue
Block a user