You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2025/02/06 01:52:58 UTC

(superset) branch elizabeth/remove-ruff-f401 updated (ce8f4e1fe1 -> 2744ab8f34)

This is an automated email from the ASF dual-hosted git repository.

elizabeth pushed a change to branch elizabeth/remove-ruff-f401
in repository https://gitbox.apache.org/repos/asf/superset.git


    omit ce8f4e1fe1 remove F401 errors
     new 2744ab8f34 remove F401 errors

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ce8f4e1fe1)
            \
             N -- N -- N   refs/heads/elizabeth/remove-ruff-f401 (2744ab8f34)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 tests/integration_tests/charts/data/api_tests.py | 1 +
 1 file changed, 1 insertion(+)


(superset) 01/01: remove F401 errors

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elizabeth pushed a commit to branch elizabeth/remove-ruff-f401
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 2744ab8f346a306f17116314be1344ad7d979ae1
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Wed Feb 5 17:29:01 2025 -0800

    remove F401 errors
---
 superset/__init__.py                                             | 1 -
 superset/commands/chart/importers/v1/__init__.py                 | 1 -
 superset/commands/dashboard/importers/v1/__init__.py             | 1 -
 superset/commands/database/importers/v1/__init__.py              | 1 -
 superset/commands/dataset/importers/v1/__init__.py               | 1 -
 superset/commands/importers/v1/__init__.py                       | 2 --
 superset/commands/query/importers/v1/__init__.py                 | 2 --
 superset/initialization/__init__.py                              | 2 +-
 superset/reports/notifications/__init__.py                       | 3 ---
 superset/security/__init__.py                                    | 1 -
 superset/sql_validators/__init__.py                              | 1 -
 tests/integration_tests/access_tests.py                          | 3 ---
 tests/integration_tests/advanced_data_type/api_tests.py          | 4 ----
 tests/integration_tests/charts/commands_tests.py                 | 1 -
 tests/integration_tests/css_templates/api_tests.py               | 1 -
 tests/integration_tests/dashboard_utils.py                       | 2 --
 tests/integration_tests/dashboards/filter_state/api_tests.py     | 3 ---
 tests/integration_tests/dashboards/permalink/api_tests.py        | 2 --
 .../dashboards/security/security_dataset_tests.py                | 1 -
 .../integration_tests/dashboards/security/security_rbac_tests.py | 1 -
 tests/integration_tests/databases/commands_tests.py              | 1 -
 tests/integration_tests/datasets/api_tests.py                    | 1 -
 tests/integration_tests/db_engine_specs/base_tests.py            | 2 --
 tests/integration_tests/db_engine_specs/presto_tests.py          | 1 -
 tests/integration_tests/event_logger_tests.py                    | 1 -
 tests/integration_tests/explore/api_tests.py                     | 1 -
 tests/integration_tests/explore/form_data/api_tests.py           | 1 -
 tests/integration_tests/explore/permalink/api_tests.py           | 2 --
 tests/integration_tests/fixtures/datasource.py                   | 1 -
 tests/integration_tests/log_api_tests.py                         | 2 --
 tests/integration_tests/model_tests.py                           | 3 ---
 tests/integration_tests/reports/commands_tests.py                | 4 ----
 tests/integration_tests/reports/utils.py                         | 1 -
 tests/integration_tests/security/guest_token_security_tests.py   | 3 +--
 tests/integration_tests/security/migrate_roles_tests.py          | 1 -
 tests/integration_tests/security/row_level_security_tests.py     | 1 -
 tests/integration_tests/security_tests.py                        | 1 -
 tests/integration_tests/sql_lab/api_tests.py                     | 4 ----
 tests/integration_tests/sql_lab/commands_tests.py                | 1 -
 tests/integration_tests/sqllab_tests.py                          | 2 --
 tests/integration_tests/strategy_tests.py                        | 5 -----
 tests/integration_tests/tags/api_tests.py                        | 9 +--------
 tests/integration_tests/tags/commands_tests.py                   | 7 -------
 tests/integration_tests/tags/dao_tests.py                        | 4 ----
 tests/integration_tests/utils_tests.py                           | 3 ---
 tests/unit_tests/db_engine_specs/test_bigquery.py                | 1 -
 tests/unit_tests/db_engine_specs/test_clickhouse.py              | 1 -
 tests/unit_tests/db_engine_specs/test_couchbase.py               | 1 -
 tests/unit_tests/db_engine_specs/test_crate.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_crdb.py                    | 1 -
 tests/unit_tests/db_engine_specs/test_databend.py                | 1 -
 tests/unit_tests/db_engine_specs/test_databricks.py              | 1 -
 tests/unit_tests/db_engine_specs/test_denodo.py                  | 1 -
 tests/unit_tests/db_engine_specs/test_dremio.py                  | 1 -
 tests/unit_tests/db_engine_specs/test_drill.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_druid.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_duckdb.py                  | 1 -
 tests/unit_tests/db_engine_specs/test_dynamodb.py                | 1 -
 tests/unit_tests/db_engine_specs/test_elasticsearch.py           | 2 --
 tests/unit_tests/db_engine_specs/test_firebird.py                | 1 -
 tests/unit_tests/db_engine_specs/test_firebolt.py                | 1 -
 tests/unit_tests/db_engine_specs/test_hana.py                    | 1 -
 tests/unit_tests/db_engine_specs/test_hive.py                    | 1 -
 tests/unit_tests/db_engine_specs/test_impala.py                  | 1 -
 tests/unit_tests/db_engine_specs/test_kusto.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_kylin.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_mssql.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_mysql.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_oracle.py                  | 1 -
 tests/unit_tests/db_engine_specs/test_parseable.py               | 1 -
 tests/unit_tests/db_engine_specs/test_postgres.py                | 1 -
 tests/unit_tests/db_engine_specs/test_redshift.py                | 1 -
 tests/unit_tests/db_engine_specs/test_rockset.py                 | 1 -
 tests/unit_tests/db_engine_specs/test_snowflake.py               | 1 -
 tests/unit_tests/db_engine_specs/test_sqlite.py                  | 1 -
 tests/unit_tests/db_engine_specs/test_trino.py                   | 1 -
 tests/unit_tests/db_engine_specs/test_ydb.py                     | 1 -
 tests/unit_tests/legacy_tests.py                                 | 1 -
 78 files changed, 3 insertions(+), 127 deletions(-)

diff --git a/superset/__init__.py b/superset/__init__.py
index cbab58e0d2..ec776d6ea4 100644
--- a/superset/__init__.py
+++ b/superset/__init__.py
@@ -29,7 +29,6 @@ from superset.extensions import (
     security_manager,  # noqa: F401
     talisman,  # noqa: F401
 )
-from superset.security import SupersetSecurityManager  # noqa: F401
 
 # All of the fields located here should be considered legacy. The correct way
 # to declare "global" dependencies is to define it in extensions.py,
diff --git a/superset/commands/chart/importers/v1/__init__.py b/superset/commands/chart/importers/v1/__init__.py
index 8ba24035ab..4b81d40d73 100644
--- a/superset/commands/chart/importers/v1/__init__.py
+++ b/superset/commands/chart/importers/v1/__init__.py
@@ -18,7 +18,6 @@
 from typing import Any
 
 from marshmallow import Schema
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset.charts.schemas import ImportV1ChartSchema
 from superset.commands.chart.exceptions import ChartImportError
diff --git a/superset/commands/dashboard/importers/v1/__init__.py b/superset/commands/dashboard/importers/v1/__init__.py
index 17fb85fcfe..04a991a1a2 100644
--- a/superset/commands/dashboard/importers/v1/__init__.py
+++ b/superset/commands/dashboard/importers/v1/__init__.py
@@ -18,7 +18,6 @@
 from typing import Any
 
 from marshmallow import Schema
-from sqlalchemy.orm import Session  # noqa: F401
 from sqlalchemy.sql import select
 
 from superset import db
diff --git a/superset/commands/database/importers/v1/__init__.py b/superset/commands/database/importers/v1/__init__.py
index c8684bc5eb..31a7e3831a 100644
--- a/superset/commands/database/importers/v1/__init__.py
+++ b/superset/commands/database/importers/v1/__init__.py
@@ -18,7 +18,6 @@
 from typing import Any
 
 from marshmallow import Schema
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset.commands.database.exceptions import DatabaseImportError
 from superset.commands.database.importers.v1.utils import import_database
diff --git a/superset/commands/dataset/importers/v1/__init__.py b/superset/commands/dataset/importers/v1/__init__.py
index c7ecba1227..dd2ed503df 100644
--- a/superset/commands/dataset/importers/v1/__init__.py
+++ b/superset/commands/dataset/importers/v1/__init__.py
@@ -18,7 +18,6 @@
 from typing import Any
 
 from marshmallow import Schema
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset.commands.database.importers.v1.utils import import_database
 from superset.commands.dataset.exceptions import DatasetImportError
diff --git a/superset/commands/importers/v1/__init__.py b/superset/commands/importers/v1/__init__.py
index 989c494b60..1f4cb3f1ad 100644
--- a/superset/commands/importers/v1/__init__.py
+++ b/superset/commands/importers/v1/__init__.py
@@ -18,7 +18,6 @@ from typing import Any, Optional
 
 from marshmallow import Schema, validate  # noqa: F401
 from marshmallow.exceptions import ValidationError
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset import db
 from superset.commands.base import BaseCommand
@@ -31,7 +30,6 @@ from superset.commands.importers.v1.utils import (
     validate_metadata_type,
 )
 from superset.daos.base import BaseDAO
-from superset.models.core import Database  # noqa: F401
 from superset.utils.decorators import transaction
 
 
diff --git a/superset/commands/query/importers/v1/__init__.py b/superset/commands/query/importers/v1/__init__.py
index 3dc25d93a1..b50ef53db6 100644
--- a/superset/commands/query/importers/v1/__init__.py
+++ b/superset/commands/query/importers/v1/__init__.py
@@ -18,13 +18,11 @@
 from typing import Any
 
 from marshmallow import Schema
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset.commands.database.importers.v1.utils import import_database
 from superset.commands.importers.v1 import ImportModelsCommand
 from superset.commands.query.exceptions import SavedQueryImportError
 from superset.commands.query.importers.v1.utils import import_saved_query
-from superset.connectors.sqla.models import SqlaTable  # noqa: F401
 from superset.daos.query import SavedQueryDAO
 from superset.databases.schemas import ImportV1DatabaseSchema
 from superset.queries.saved_queries.schemas import ImportV1SavedQuerySchema
diff --git a/superset/initialization/__init__.py b/superset/initialization/__init__.py
index 1a09d8b24c..97a20857ad 100644
--- a/superset/initialization/__init__.py
+++ b/superset/initialization/__init__.py
@@ -53,7 +53,7 @@ from superset.extensions import (
     stats_logger_manager,
     talisman,
 )
-from superset.security import SupersetSecurityManager
+from superset.security.manager import SupersetSecurityManager
 from superset.sql.parse import SQLGLOT_DIALECTS
 from superset.superset_typing import FlaskResponse
 from superset.tags.core import register_sqla_event_listeners
diff --git a/superset/reports/notifications/__init__.py b/superset/reports/notifications/__init__.py
index 938e393447..d804070a27 100644
--- a/superset/reports/notifications/__init__.py
+++ b/superset/reports/notifications/__init__.py
@@ -16,9 +16,6 @@
 # under the License.
 from superset.reports.models import ReportRecipients
 from superset.reports.notifications.base import BaseNotification, NotificationContent
-from superset.reports.notifications.email import EmailNotification  # noqa: F401
-from superset.reports.notifications.slack import SlackNotification  # noqa: F401
-from superset.reports.notifications.slackv2 import SlackV2Notification  # noqa: F401
 
 
 def create_notification(
diff --git a/superset/security/__init__.py b/superset/security/__init__.py
index 42f1a0c560..13a83393a9 100644
--- a/superset/security/__init__.py
+++ b/superset/security/__init__.py
@@ -14,4 +14,3 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-from superset.security.manager import SupersetSecurityManager  # noqa: F401
diff --git a/superset/sql_validators/__init__.py b/superset/sql_validators/__init__.py
index 0298cf32ed..8a8cf45aae 100644
--- a/superset/sql_validators/__init__.py
+++ b/superset/sql_validators/__init__.py
@@ -17,7 +17,6 @@
 from typing import Optional
 
 from . import base, postgres, presto_db
-from .base import SQLValidationAnnotation  # noqa: F401
 
 
 def get_validator_by_name(name: str) -> Optional[type[base.BaseSQLValidator]]:
diff --git a/tests/integration_tests/access_tests.py b/tests/integration_tests/access_tests.py
index 2b439e8873..32fe274ba5 100644
--- a/tests/integration_tests/access_tests.py
+++ b/tests/integration_tests/access_tests.py
@@ -23,7 +23,6 @@ from typing import Optional
 import pytest
 from flask.ctx import AppContext
 from pytest_mock import MockerFixture
-from sqlalchemy import inspect  # noqa: F401
 
 from tests.integration_tests.fixtures.birth_names_dashboard import (
     load_birth_names_dashboard_with_slices,  # noqa: F401
@@ -38,10 +37,8 @@ from tests.integration_tests.fixtures.energy_dashboard import (
     load_energy_table_data,  # noqa: F401
 )
 from superset import security_manager
-from superset.connectors.sqla.models import SqlaTable  # noqa: F401
 from superset.models import core as models  # noqa: F401
 from superset.utils.core import get_user_id, get_username, override_user
-from superset.utils.database import get_example_database  # noqa: F401
 
 
 ROLE_TABLES_PERM_DATA = {
diff --git a/tests/integration_tests/advanced_data_type/api_tests.py b/tests/integration_tests/advanced_data_type/api_tests.py
index 1a1f74455e..ff1b6fda3e 100644
--- a/tests/integration_tests/advanced_data_type/api_tests.py
+++ b/tests/integration_tests/advanced_data_type/api_tests.py
@@ -18,10 +18,6 @@
 """Unit tests for Superset"""
 
 import prison
-
-from superset.utils.core import get_example_default_schema  # noqa: F401
-
-from tests.integration_tests.utils.get_dashboards import get_dashboards_ids  # noqa: F401
 from unittest import mock
 from sqlalchemy import Column
 from typing import Any
diff --git a/tests/integration_tests/charts/commands_tests.py b/tests/integration_tests/charts/commands_tests.py
index 3a193b40e2..5041b9a7fa 100644
--- a/tests/integration_tests/charts/commands_tests.py
+++ b/tests/integration_tests/charts/commands_tests.py
@@ -18,7 +18,6 @@ from unittest.mock import patch
 
 import pytest
 import yaml
-from flask import g  # noqa: F401
 
 from superset import db, security_manager
 from superset.commands.chart.create import CreateChartCommand
diff --git a/tests/integration_tests/css_templates/api_tests.py b/tests/integration_tests/css_templates/api_tests.py
index 0e8054b07a..646c887336 100644
--- a/tests/integration_tests/css_templates/api_tests.py
+++ b/tests/integration_tests/css_templates/api_tests.py
@@ -26,7 +26,6 @@ from sqlalchemy.sql import func
 import tests.integration_tests.test_app  # noqa: F401
 from superset import db
 from superset.models.core import CssTemplate
-from superset.utils.database import get_example_database  # noqa: F401
 from superset.utils import json
 
 from tests.integration_tests.base_tests import SupersetTestCase
diff --git a/tests/integration_tests/dashboard_utils.py b/tests/integration_tests/dashboard_utils.py
index 1b900ecbcc..78a99d1464 100644
--- a/tests/integration_tests/dashboard_utils.py
+++ b/tests/integration_tests/dashboard_utils.py
@@ -18,8 +18,6 @@
 
 from typing import Optional
 
-from pandas import DataFrame  # noqa: F401
-
 from superset import db
 from superset.connectors.sqla.models import SqlaTable
 from superset.models.core import Database
diff --git a/tests/integration_tests/dashboards/filter_state/api_tests.py b/tests/integration_tests/dashboards/filter_state/api_tests.py
index b050a326d5..1b3a353d3a 100644
--- a/tests/integration_tests/dashboards/filter_state/api_tests.py
+++ b/tests/integration_tests/dashboards/filter_state/api_tests.py
@@ -14,12 +14,10 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-from unittest.mock import patch  # noqa: F401
 
 import pytest
 from flask.ctx import AppContext
 from flask_appbuilder.security.sqla.models import User
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset import db
 from superset.commands.dashboard.exceptions import (
@@ -34,7 +32,6 @@ from tests.integration_tests.fixtures.world_bank_dashboard import (
     load_world_bank_dashboard_with_slices,  # noqa: F401
     load_world_bank_data,  # noqa: F401
 )
-from tests.integration_tests.test_app import app  # noqa: F401
 
 KEY = "test-key"
 INITIAL_VALUE = json.dumps({"test": "initial value"})
diff --git a/tests/integration_tests/dashboards/permalink/api_tests.py b/tests/integration_tests/dashboards/permalink/api_tests.py
index 8e0dcaaa42..6590c0eaed 100644
--- a/tests/integration_tests/dashboards/permalink/api_tests.py
+++ b/tests/integration_tests/dashboards/permalink/api_tests.py
@@ -20,7 +20,6 @@ from uuid import uuid3
 
 import pytest
 from flask_appbuilder.security.sqla.models import User  # noqa: F401
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset import db
 from superset.commands.dashboard.exceptions import (
@@ -34,7 +33,6 @@ from tests.integration_tests.fixtures.world_bank_dashboard import (
     load_world_bank_dashboard_with_slices,  # noqa: F401
     load_world_bank_data,  # noqa: F401
 )
-from tests.integration_tests.test_app import app  # noqa: F401
 
 STATE = {
     "dataMask": {"FILTER_1": "foo"},
diff --git a/tests/integration_tests/dashboards/security/security_dataset_tests.py b/tests/integration_tests/dashboards/security/security_dataset_tests.py
index 064139ccb2..76656f9ad6 100644
--- a/tests/integration_tests/dashboards/security/security_dataset_tests.py
+++ b/tests/integration_tests/dashboards/security/security_dataset_tests.py
@@ -18,7 +18,6 @@
 
 import prison
 import pytest
-from flask import escape  # noqa: F401
 
 from superset import app
 from superset.daos.dashboard import DashboardDAO
diff --git a/tests/integration_tests/dashboards/security/security_rbac_tests.py b/tests/integration_tests/dashboards/security/security_rbac_tests.py
index 4754854047..bc8693937a 100644
--- a/tests/integration_tests/dashboards/security/security_rbac_tests.py
+++ b/tests/integration_tests/dashboards/security/security_rbac_tests.py
@@ -17,7 +17,6 @@
 """Unit tests for Superset"""
 
 from unittest import mock
-from unittest.mock import patch  # noqa: F401
 
 import pytest
 
diff --git a/tests/integration_tests/databases/commands_tests.py b/tests/integration_tests/databases/commands_tests.py
index 4efe2dcbdc..ceb74e0e6f 100644
--- a/tests/integration_tests/databases/commands_tests.py
+++ b/tests/integration_tests/databases/commands_tests.py
@@ -39,7 +39,6 @@ from superset.commands.database.validate import ValidateDatabaseParametersComman
 from superset.commands.exceptions import CommandInvalidError
 from superset.commands.importers.exceptions import IncorrectVersionError
 from superset.connectors.sqla.models import SqlaTable
-from superset.databases.schemas import DatabaseTestConnectionSchema  # noqa: F401
 from superset.databases.ssh_tunnel.models import SSHTunnel
 from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
 from superset.exceptions import (
diff --git a/tests/integration_tests/datasets/api_tests.py b/tests/integration_tests/datasets/api_tests.py
index 6c6410feed..d8c6f93280 100644
--- a/tests/integration_tests/datasets/api_tests.py
+++ b/tests/integration_tests/datasets/api_tests.py
@@ -30,7 +30,6 @@ from sqlalchemy.exc import SQLAlchemyError
 from sqlalchemy.orm import joinedload
 from sqlalchemy.sql import func
 
-from superset import app  # noqa: F401
 from superset.commands.dataset.exceptions import DatasetCreateFailedError
 from superset.connectors.sqla.models import SqlaTable, SqlMetric, TableColumn
 from superset.extensions import db, security_manager
diff --git a/tests/integration_tests/db_engine_specs/base_tests.py b/tests/integration_tests/db_engine_specs/base_tests.py
index c836e71b68..08847ccb10 100644
--- a/tests/integration_tests/db_engine_specs/base_tests.py
+++ b/tests/integration_tests/db_engine_specs/base_tests.py
@@ -15,8 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 # isort:skip_file
-
-from tests.integration_tests.test_app import app  # noqa: F401
 from tests.integration_tests.base_tests import SupersetTestCase
 from superset.db_engine_specs.base import BaseEngineSpec
 from superset.models.core import Database
diff --git a/tests/integration_tests/db_engine_specs/presto_tests.py b/tests/integration_tests/db_engine_specs/presto_tests.py
index c57bec8800..d543ce14ae 100644
--- a/tests/integration_tests/db_engine_specs/presto_tests.py
+++ b/tests/integration_tests/db_engine_specs/presto_tests.py
@@ -20,7 +20,6 @@ from unittest import mock, skipUnless
 
 import pandas as pd
 from flask.ctx import AppContext
-from sqlalchemy import types  # noqa: F401
 from sqlalchemy.sql import select
 
 from superset.db_engine_specs.presto import PrestoEngineSpec
diff --git a/tests/integration_tests/event_logger_tests.py b/tests/integration_tests/event_logger_tests.py
index 4a9ca8dde6..4dcb646034 100644
--- a/tests/integration_tests/event_logger_tests.py
+++ b/tests/integration_tests/event_logger_tests.py
@@ -21,7 +21,6 @@ from datetime import timedelta
 from typing import Any, Optional
 from unittest.mock import patch
 
-from flask import current_app  # noqa: F401
 from freezegun import freeze_time
 
 from superset import security_manager
diff --git a/tests/integration_tests/explore/api_tests.py b/tests/integration_tests/explore/api_tests.py
index 730e013f82..f69216317d 100644
--- a/tests/integration_tests/explore/api_tests.py
+++ b/tests/integration_tests/explore/api_tests.py
@@ -18,7 +18,6 @@ from unittest.mock import patch
 
 import pytest
 from flask_appbuilder.security.sqla.models import User
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset import db
 from superset.commands.explore.form_data.state import TemporaryExploreState
diff --git a/tests/integration_tests/explore/form_data/api_tests.py b/tests/integration_tests/explore/form_data/api_tests.py
index 6057bb271f..b5e7680341 100644
--- a/tests/integration_tests/explore/form_data/api_tests.py
+++ b/tests/integration_tests/explore/form_data/api_tests.py
@@ -18,7 +18,6 @@ from unittest.mock import patch
 
 import pytest
 from flask_appbuilder.security.sqla.models import User
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset import db
 from superset.commands.dataset.exceptions import DatasetAccessDeniedError
diff --git a/tests/integration_tests/explore/permalink/api_tests.py b/tests/integration_tests/explore/permalink/api_tests.py
index a241030612..efd9c6aac1 100644
--- a/tests/integration_tests/explore/permalink/api_tests.py
+++ b/tests/integration_tests/explore/permalink/api_tests.py
@@ -19,7 +19,6 @@ from typing import Any
 from uuid import uuid3
 
 import pytest
-from sqlalchemy.orm import Session  # noqa: F401
 
 from superset import db
 from superset.explore.permalink.schemas import ExplorePermalinkSchema
@@ -33,7 +32,6 @@ from tests.integration_tests.fixtures.world_bank_dashboard import (
     load_world_bank_dashboard_with_slices,  # noqa: F401
     load_world_bank_data,  # noqa: F401
 )
-from tests.integration_tests.test_app import app  # noqa: F401
 
 
 @pytest.fixture
diff --git a/tests/integration_tests/fixtures/datasource.py b/tests/integration_tests/fixtures/datasource.py
index 99223b9c1a..aa5aa7aa0a 100644
--- a/tests/integration_tests/fixtures/datasource.py
+++ b/tests/integration_tests/fixtures/datasource.py
@@ -27,7 +27,6 @@ from superset.connectors.sqla.models import SqlaTable, TableColumn
 from superset.extensions import db
 from superset.models.core import Database
 from superset.utils.core import get_example_default_schema
-from superset.utils.database import get_example_database  # noqa: F401
 from tests.integration_tests.test_app import app
 
 
diff --git a/tests/integration_tests/log_api_tests.py b/tests/integration_tests/log_api_tests.py
index 0ed588d50b..ec5449c245 100644
--- a/tests/integration_tests/log_api_tests.py
+++ b/tests/integration_tests/log_api_tests.py
@@ -30,14 +30,12 @@ from superset.models.core import Log
 from superset.views.log.api import LogRestApi
 from superset.utils import json
 from tests.integration_tests.base_tests import SupersetTestCase
-from tests.integration_tests.conftest import with_feature_flags  # noqa: F401
 from tests.integration_tests.constants import (
     ADMIN_USERNAME,
     ALPHA_USERNAME,
     GAMMA_USERNAME,
 )
 from tests.integration_tests.dashboard_utils import create_dashboard
-from tests.integration_tests.test_app import app  # noqa: F401
 
 EXPECTED_COLUMNS = [
     "action",
diff --git a/tests/integration_tests/model_tests.py b/tests/integration_tests/model_tests.py
index f3d73ae553..5f9b7faa66 100644
--- a/tests/integration_tests/model_tests.py
+++ b/tests/integration_tests/model_tests.py
@@ -22,7 +22,6 @@ import unittest
 from unittest import mock
 
 from superset import security_manager
-from superset.connectors.sqla.models import SqlaTable  # noqa: F401
 from superset.exceptions import SupersetException
 from superset.utils.core import override_user
 from tests.integration_tests.fixtures.birth_names_dashboard import (
@@ -32,11 +31,9 @@ from tests.integration_tests.fixtures.birth_names_dashboard import (
 
 import pytest
 from sqlalchemy.engine.url import make_url
-from sqlalchemy.types import DateTime  # noqa: F401
 
 import tests.integration_tests.test_app  # noqa: F401
 from superset import app, db as metadata_db
-from superset.db_engine_specs.postgres import PostgresEngineSpec  # noqa: F401
 from superset.common.db_query_status import QueryStatus
 from superset.models.core import Database
 from superset.models.slice import Slice
diff --git a/tests/integration_tests/reports/commands_tests.py b/tests/integration_tests/reports/commands_tests.py
index 7b22b38fc0..43f4d46ad0 100644
--- a/tests/integration_tests/reports/commands_tests.py
+++ b/tests/integration_tests/reports/commands_tests.py
@@ -1756,7 +1756,6 @@ def test_email_dashboard_report_fails_uncaught_exception(
     and logs with uncaught exception
     """
     # setup screenshot mock
-    from smtplib import SMTPException  # noqa: F401
 
     screenshot_mock.return_value = SCREENSHOT_FILE
     email_mock.side_effect = Exception("Uncaught exception")
@@ -2045,9 +2044,6 @@ def test_fail_screenshot(screenshot_mock, email_mock, create_report_email_chart)
     """
     ExecuteReport Command: Test soft timeout on screenshot
     """
-    from celery.exceptions import SoftTimeLimitExceeded  # noqa: F401
-
-    from superset.commands.report.exceptions import AlertQueryTimeout  # noqa: F401
 
     screenshot_mock.side_effect = Exception("Unexpected error")
     with pytest.raises(ReportScheduleScreenshotFailedError):
diff --git a/tests/integration_tests/reports/utils.py b/tests/integration_tests/reports/utils.py
index 3ab5c46c4e..b2cc3c1376 100644
--- a/tests/integration_tests/reports/utils.py
+++ b/tests/integration_tests/reports/utils.py
@@ -37,7 +37,6 @@ from superset.reports.models import (
 )
 from superset.utils import json
 from superset.utils.core import override_user
-from tests.integration_tests.test_app import app  # noqa: F401
 from tests.integration_tests.utils import read_fixture
 
 TEST_ID = str(uuid4())
diff --git a/tests/integration_tests/security/guest_token_security_tests.py b/tests/integration_tests/security/guest_token_security_tests.py
index 36c2c92737..edc1e0a649 100644
--- a/tests/integration_tests/security/guest_token_security_tests.py
+++ b/tests/integration_tests/security/guest_token_security_tests.py
@@ -26,8 +26,7 @@ from superset.connectors.sqla.models import SqlaTable
 from superset.daos.dashboard import EmbeddedDashboardDAO
 from superset.exceptions import SupersetSecurityException
 from superset.models.dashboard import Dashboard
-from superset.security.guest_token import GuestTokenResourceType  # noqa: F401
-from superset.sql_parse import Table  # noqa: F401
+from superset.security.guest_token import GuestTokenResourceType
 from superset.utils import json
 from superset.utils.core import get_example_default_schema
 from superset.utils.database import get_example_database
diff --git a/tests/integration_tests/security/migrate_roles_tests.py b/tests/integration_tests/security/migrate_roles_tests.py
index 738bb6b60a..bf47d1965a 100644
--- a/tests/integration_tests/security/migrate_roles_tests.py
+++ b/tests/integration_tests/security/migrate_roles_tests.py
@@ -18,7 +18,6 @@
 
 import logging
 from contextlib import contextmanager
-from unittest.mock import patch  # noqa: F401
 
 import pytest
 from flask_appbuilder.security.sqla.models import Role
diff --git a/tests/integration_tests/security/row_level_security_tests.py b/tests/integration_tests/security/row_level_security_tests.py
index 0916124a6f..b31c4fa136 100644
--- a/tests/integration_tests/security/row_level_security_tests.py
+++ b/tests/integration_tests/security/row_level_security_tests.py
@@ -33,7 +33,6 @@ from superset.utils import json
 from flask_babel import lazy_gettext as _  # noqa: F401
 from flask_appbuilder.models.sqla import filters
 from tests.integration_tests.base_tests import SupersetTestCase
-from tests.integration_tests.conftest import with_config  # noqa: F401
 from tests.integration_tests.constants import ADMIN_USERNAME
 from tests.integration_tests.fixtures.birth_names_dashboard import (
     load_birth_names_dashboard_with_slices,  # noqa: F401
diff --git a/tests/integration_tests/security_tests.py b/tests/integration_tests/security_tests.py
index f148f9418e..b87735e6b4 100644
--- a/tests/integration_tests/security_tests.py
+++ b/tests/integration_tests/security_tests.py
@@ -29,7 +29,6 @@ import pytest
 
 from flask import current_app, g
 from flask_appbuilder.security.sqla.models import Role
-from superset.daos.datasource import DatasourceDAO  # noqa: F401
 from superset.models.dashboard import Dashboard
 from superset import app, appbuilder, db, security_manager, viz
 from superset.connectors.sqla.models import SqlaTable
diff --git a/tests/integration_tests/sql_lab/api_tests.py b/tests/integration_tests/sql_lab/api_tests.py
index 7d0ea7cc2e..182f9c6d2d 100644
--- a/tests/integration_tests/sql_lab/api_tests.py
+++ b/tests/integration_tests/sql_lab/api_tests.py
@@ -25,14 +25,12 @@ import io
 
 import pytest
 import prison
-from sqlalchemy.sql import func  # noqa: F401
 from unittest import mock
 
 from flask_appbuilder.security.sqla.models import Role
 from tests.integration_tests.test_app import app
 from superset import db, sql_lab
 from superset.common.db_query_status import QueryStatus
-from superset.models.core import Database  # noqa: F401
 from superset.utils.database import get_example_database, get_main_database  # noqa: F401
 from superset.utils import core as utils, json
 from superset.models.sql_lab import Query
@@ -42,8 +40,6 @@ from tests.integration_tests.constants import (
     ADMIN_USERNAME,
     GAMMA_SQLLAB_NO_DATA_USERNAME,
 )
-from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_data  # noqa: F401
-from tests.integration_tests.fixtures.users import create_gamma_sqllab_no_data  # noqa: F401
 
 QUERIES_FIXTURE_COUNT = 10
 
diff --git a/tests/integration_tests/sql_lab/commands_tests.py b/tests/integration_tests/sql_lab/commands_tests.py
index acd9edbf21..318826d65d 100644
--- a/tests/integration_tests/sql_lab/commands_tests.py
+++ b/tests/integration_tests/sql_lab/commands_tests.py
@@ -31,7 +31,6 @@ from superset.exceptions import (
     SupersetSecurityException,
     SupersetTimeoutException,
 )
-from superset.models.core import Database  # noqa: F401
 from superset.models.sql_lab import Query
 from superset.sqllab.limiting_factor import LimitingFactor
 from superset.sqllab.schemas import EstimateQueryCostSchema
diff --git a/tests/integration_tests/sqllab_tests.py b/tests/integration_tests/sqllab_tests.py
index 65d0c5fd3b..fcdbc1fc2b 100644
--- a/tests/integration_tests/sqllab_tests.py
+++ b/tests/integration_tests/sqllab_tests.py
@@ -26,7 +26,6 @@ from unittest import mock
 import prison
 
 from superset import db, security_manager
-from superset.connectors.sqla.models import SqlaTable  # noqa: F401
 from superset.db_engine_specs import BaseEngineSpec
 from superset.db_engine_specs.hive import HiveEngineSpec
 from superset.db_engine_specs.presto import PrestoEngineSpec
@@ -43,7 +42,6 @@ from superset.sql_lab import (
 from superset.sql_parse import CtasMethod
 from superset.utils.core import backend
 from superset.utils import json
-from superset.utils.json import datetime_to_epoch  # noqa: F401
 from superset.utils.database import get_example_database, get_main_database
 
 from tests.integration_tests.base_tests import SupersetTestCase
diff --git a/tests/integration_tests/strategy_tests.py b/tests/integration_tests/strategy_tests.py
index 6dc99f501f..6430216974 100644
--- a/tests/integration_tests/strategy_tests.py
+++ b/tests/integration_tests/strategy_tests.py
@@ -17,7 +17,6 @@
 # isort:skip_file
 """Unit tests for Superset cache warmup"""
 
-from unittest.mock import MagicMock  # noqa: F401
 from tests.integration_tests.fixtures.birth_names_dashboard import (
     load_birth_names_dashboard_with_slices,  # noqa: F401
     load_birth_names_data,  # noqa: F401
@@ -28,9 +27,6 @@ from sqlalchemy import String, Date, Float  # noqa: F401
 import pytest
 import pandas as pd  # noqa: F401
 
-from superset.models.slice import Slice  # noqa: F401
-from superset.utils.database import get_example_database  # noqa: F401
-
 from superset import db
 
 from superset.models.core import Log
@@ -39,7 +35,6 @@ from superset.tasks.cache import (
     DashboardTagsStrategy,
     TopNDashboardsStrategy,
 )
-from superset.utils.urls import get_url_host  # noqa: F401
 
 from tests.integration_tests.base_tests import SupersetTestCase
 from tests.integration_tests.constants import ADMIN_USERNAME
diff --git a/tests/integration_tests/tags/api_tests.py b/tests/integration_tests/tags/api_tests.py
index 79022d2805..fe09ac8063 100644
--- a/tests/integration_tests/tags/api_tests.py
+++ b/tests/integration_tests/tags/api_tests.py
@@ -19,25 +19,18 @@
 
 import prison
 from datetime import datetime
-
-from flask import g  # noqa: F401
 import pytest
 import prison  # noqa: F811
 from freezegun import freeze_time
 from sqlalchemy.sql import func
-from sqlalchemy import and_  # noqa: F401
 from superset.models.dashboard import Dashboard
 from superset.models.slice import Slice
-from superset.models.sql_lab import SavedQuery  # noqa: F401
-from superset.tags.models import user_favorite_tag_table  # noqa: F401
 from unittest.mock import patch
 from urllib import parse
 
 
 import tests.integration_tests.test_app  # noqa: F401
 from superset import db, security_manager  # noqa: F401
-from superset.common.db_query_status import QueryStatus  # noqa: F401
-from superset.models.core import Database  # noqa: F401
 from superset.utils.database import get_example_database, get_main_database  # noqa: F401
 from superset.utils import json
 from superset.tags.models import ObjectType, Tag, TagType, TaggedObject
@@ -50,10 +43,10 @@ from tests.integration_tests.fixtures.world_bank_dashboard import (
     load_world_bank_dashboard_with_slices,  # noqa: F401
     load_world_bank_data,  # noqa: F401
 )
-from tests.integration_tests.fixtures.tags import with_tagging_system_feature  # noqa: F401
 from tests.integration_tests.base_tests import SupersetTestCase
 from superset.daos.tag import TagDAO
 from superset.tags.models import ObjectType  # noqa: F811
+from tests.integration_tests.fixtures.tags import with_tagging_system_feature  # noqa: F401
 
 TAGS_FIXTURE_COUNT = 10
 
diff --git a/tests/integration_tests/tags/commands_tests.py b/tests/integration_tests/tags/commands_tests.py
index cf340c5b11..0583120d5c 100644
--- a/tests/integration_tests/tags/commands_tests.py
+++ b/tests/integration_tests/tags/commands_tests.py
@@ -19,24 +19,17 @@ from unittest.mock import MagicMock, patch  # noqa: F401
 
 import pytest
 import yaml  # noqa: F401
-from werkzeug.utils import secure_filename  # noqa: F401
 
 from superset import db, security_manager  # noqa: F401
-from superset.commands.dashboard.exceptions import DashboardNotFoundError  # noqa: F401
 from superset.commands.dashboard.export import (
     append_charts,  # noqa: F401
     ExportDashboardsCommand,  # noqa: F401
     get_default_position,  # noqa: F401
 )
 from superset.commands.dashboard.importers import v0, v1  # noqa: F401
-from superset.commands.exceptions import CommandInvalidError  # noqa: F401
-from superset.commands.importers.exceptions import IncorrectVersionError  # noqa: F401
 from superset.commands.tag.create import CreateCustomTagCommand
 from superset.commands.tag.delete import DeleteTaggedObjectCommand, DeleteTagsCommand
-from superset.connectors.sqla.models import SqlaTable  # noqa: F401
-from superset.models.core import Database  # noqa: F401
 from superset.models.dashboard import Dashboard
-from superset.models.slice import Slice  # noqa: F401
 from superset.tags.models import ObjectType, Tag, TaggedObject, TagType
 from tests.integration_tests.base_tests import SupersetTestCase
 from tests.integration_tests.fixtures.importexport import (
diff --git a/tests/integration_tests/tags/dao_tests.py b/tests/integration_tests/tags/dao_tests.py
index 16e09f4149..f86599dba1 100644
--- a/tests/integration_tests/tags/dao_tests.py
+++ b/tests/integration_tests/tags/dao_tests.py
@@ -16,18 +16,14 @@
 # under the License.
 # isort:skip_file
 from operator import and_
-from unittest.mock import patch  # noqa: F401
 import pytest
 from superset.models.slice import Slice
-from superset.models.sql_lab import SavedQuery  # noqa: F401
 from superset.daos.tag import TagDAO
-from superset.tags.exceptions import InvalidTagNameError  # noqa: F401
 from superset.tags.models import ObjectType, Tag, TaggedObject
 from tests.integration_tests.tags.api_tests import TAGS_FIXTURE_COUNT
 
 import tests.integration_tests.test_app  # pylint: disable=unused-import  # noqa: F401
 from superset import db, security_manager  # noqa: F401
-from superset.daos.dashboard import DashboardDAO  # noqa: F401
 from superset.models.dashboard import Dashboard
 from tests.integration_tests.base_tests import SupersetTestCase
 from tests.integration_tests.fixtures.world_bank_dashboard import (
diff --git a/tests/integration_tests/utils_tests.py b/tests/integration_tests/utils_tests.py
index ca49d65fc0..63664ed213 100644
--- a/tests/integration_tests/utils_tests.py
+++ b/tests/integration_tests/utils_tests.py
@@ -34,15 +34,12 @@ import pandas as pd
 import pytest
 from flask import Flask, g  # noqa: F401
 import marshmallow
-from sqlalchemy.exc import ArgumentError  # noqa: F401
 
 import tests.integration_tests.test_app  # noqa: F401
 from superset import app, db, security_manager
 from superset.constants import NO_TIME_RANGE
 from superset.exceptions import CertificateException, SupersetException  # noqa: F401
 from superset.models.core import Database, Log
-from superset.models.dashboard import Dashboard  # noqa: F401
-from superset.models.slice import Slice  # noqa: F401
 from superset.utils.core import (
     cast_to_num,
     convert_legacy_filters_into_adhoc,
diff --git a/tests/unit_tests/db_engine_specs/test_bigquery.py b/tests/unit_tests/db_engine_specs/test_bigquery.py
index c28ff0e46b..f921d8ae9c 100644
--- a/tests/unit_tests/db_engine_specs/test_bigquery.py
+++ b/tests/unit_tests/db_engine_specs/test_bigquery.py
@@ -31,7 +31,6 @@ from superset.sql_parse import Table
 from superset.superset_typing import ResultSetColumnType
 from superset.utils import json
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_get_fields() -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_clickhouse.py b/tests/unit_tests/db_engine_specs/test_clickhouse.py
index c4277ce4ed..eaae1b236a 100644
--- a/tests/unit_tests/db_engine_specs/test_clickhouse.py
+++ b/tests/unit_tests/db_engine_specs/test_clickhouse.py
@@ -38,7 +38,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_couchbase.py b/tests/unit_tests/db_engine_specs/test_couchbase.py
index dcc3c386da..35880f0b64 100644
--- a/tests/unit_tests/db_engine_specs/test_couchbase.py
+++ b/tests/unit_tests/db_engine_specs/test_couchbase.py
@@ -26,7 +26,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_epoch_to_dttm() -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_crate.py b/tests/unit_tests/db_engine_specs/test_crate.py
index ba36dda1b6..c29f435bb6 100644
--- a/tests/unit_tests/db_engine_specs/test_crate.py
+++ b/tests/unit_tests/db_engine_specs/test_crate.py
@@ -20,7 +20,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_epoch_to_dttm() -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_crdb.py b/tests/unit_tests/db_engine_specs/test_crdb.py
index 1ee6613008..57e1a6d424 100644
--- a/tests/unit_tests/db_engine_specs/test_crdb.py
+++ b/tests/unit_tests/db_engine_specs/test_crdb.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_databend.py b/tests/unit_tests/db_engine_specs/test_databend.py
index b1c25bbbe9..edba8ec6ce 100644
--- a/tests/unit_tests/db_engine_specs/test_databend.py
+++ b/tests/unit_tests/db_engine_specs/test_databend.py
@@ -37,7 +37,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_databricks.py b/tests/unit_tests/db_engine_specs/test_databricks.py
index 95403780e1..552fdb1977 100644
--- a/tests/unit_tests/db_engine_specs/test_databricks.py
+++ b/tests/unit_tests/db_engine_specs/test_databricks.py
@@ -26,7 +26,6 @@ from superset.db_engine_specs.databricks import DatabricksNativeEngineSpec
 from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
 from superset.utils import json
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_get_parameters_from_uri() -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_denodo.py b/tests/unit_tests/db_engine_specs/test_denodo.py
index 9da7874ef0..8c43553b97 100644
--- a/tests/unit_tests/db_engine_specs/test_denodo.py
+++ b/tests/unit_tests/db_engine_specs/test_denodo.py
@@ -28,7 +28,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_dremio.py b/tests/unit_tests/db_engine_specs/test_dremio.py
index 88eae76475..867d5b959f 100644
--- a/tests/unit_tests/db_engine_specs/test_dremio.py
+++ b/tests/unit_tests/db_engine_specs/test_dremio.py
@@ -21,7 +21,6 @@ import pytest
 from pytest_mock import MockerFixture
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_drill.py b/tests/unit_tests/db_engine_specs/test_drill.py
index eb3414ea5b..aad25c5263 100644
--- a/tests/unit_tests/db_engine_specs/test_drill.py
+++ b/tests/unit_tests/db_engine_specs/test_drill.py
@@ -23,7 +23,6 @@ import pytest
 from sqlalchemy.engine.url import make_url
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_odbc_impersonation() -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_druid.py b/tests/unit_tests/db_engine_specs/test_druid.py
index 4d6f84e1ee..8d44580bb4 100644
--- a/tests/unit_tests/db_engine_specs/test_druid.py
+++ b/tests/unit_tests/db_engine_specs/test_druid.py
@@ -22,7 +22,6 @@ import pytest
 from sqlalchemy import column
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_duckdb.py b/tests/unit_tests/db_engine_specs/test_duckdb.py
index 9bbd38e5d5..a2d103433f 100644
--- a/tests/unit_tests/db_engine_specs/test_duckdb.py
+++ b/tests/unit_tests/db_engine_specs/test_duckdb.py
@@ -24,7 +24,6 @@ from pytest_mock import MockerFixture
 from superset.config import VERSION_STRING
 from superset.utils import json
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_dynamodb.py b/tests/unit_tests/db_engine_specs/test_dynamodb.py
index 71b98fd4c8..5ef9b5776c 100644
--- a/tests/unit_tests/db_engine_specs/test_dynamodb.py
+++ b/tests/unit_tests/db_engine_specs/test_dynamodb.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_elasticsearch.py b/tests/unit_tests/db_engine_specs/test_elasticsearch.py
index 2c003aba53..17a4b55cd7 100644
--- a/tests/unit_tests/db_engine_specs/test_elasticsearch.py
+++ b/tests/unit_tests/db_engine_specs/test_elasticsearch.py
@@ -19,10 +19,8 @@ from typing import Any, Optional
 from unittest.mock import MagicMock
 
 import pytest
-from sqlalchemy import column  # noqa: F401
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_firebird.py b/tests/unit_tests/db_engine_specs/test_firebird.py
index 752c26f455..0fb877fec6 100644
--- a/tests/unit_tests/db_engine_specs/test_firebird.py
+++ b/tests/unit_tests/db_engine_specs/test_firebird.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_firebolt.py b/tests/unit_tests/db_engine_specs/test_firebolt.py
index 5f417d06c5..7a2a102d1f 100644
--- a/tests/unit_tests/db_engine_specs/test_firebolt.py
+++ b/tests/unit_tests/db_engine_specs/test_firebolt.py
@@ -22,7 +22,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_hana.py b/tests/unit_tests/db_engine_specs/test_hana.py
index ade424062b..91c8156c6f 100644
--- a/tests/unit_tests/db_engine_specs/test_hana.py
+++ b/tests/unit_tests/db_engine_specs/test_hana.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_hive.py b/tests/unit_tests/db_engine_specs/test_hive.py
index e534259d2c..6f868440d0 100644
--- a/tests/unit_tests/db_engine_specs/test_hive.py
+++ b/tests/unit_tests/db_engine_specs/test_hive.py
@@ -23,7 +23,6 @@ import pytest
 from sqlalchemy.engine.url import make_url
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_impala.py b/tests/unit_tests/db_engine_specs/test_impala.py
index e85a2ce782..3ec08d0734 100644
--- a/tests/unit_tests/db_engine_specs/test_impala.py
+++ b/tests/unit_tests/db_engine_specs/test_impala.py
@@ -25,7 +25,6 @@ from superset.db_engine_specs.impala import ImpalaEngineSpec as spec  # noqa: N8
 from superset.models.core import Database
 from superset.models.sql_lab import Query
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_kusto.py b/tests/unit_tests/db_engine_specs/test_kusto.py
index a0593f7e3f..76cc027e54 100644
--- a/tests/unit_tests/db_engine_specs/test_kusto.py
+++ b/tests/unit_tests/db_engine_specs/test_kusto.py
@@ -23,7 +23,6 @@ import pytest
 from superset.sql.parse import SQLScript
 from superset.sql_parse import ParsedQuery
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_kylin.py b/tests/unit_tests/db_engine_specs/test_kylin.py
index 3392be77d4..64a692bb94 100644
--- a/tests/unit_tests/db_engine_specs/test_kylin.py
+++ b/tests/unit_tests/db_engine_specs/test_kylin.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_mssql.py b/tests/unit_tests/db_engine_specs/test_mssql.py
index affd758f09..b7f00e2ee8 100644
--- a/tests/unit_tests/db_engine_specs/test_mssql.py
+++ b/tests/unit_tests/db_engine_specs/test_mssql.py
@@ -33,7 +33,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_mysql.py b/tests/unit_tests/db_engine_specs/test_mysql.py
index 649af5c7c1..049063c85b 100644
--- a/tests/unit_tests/db_engine_specs/test_mysql.py
+++ b/tests/unit_tests/db_engine_specs/test_mysql.py
@@ -41,7 +41,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_oracle.py b/tests/unit_tests/db_engine_specs/test_oracle.py
index 376b29bbf3..90c49a9566 100644
--- a/tests/unit_tests/db_engine_specs/test_oracle.py
+++ b/tests/unit_tests/db_engine_specs/test_oracle.py
@@ -25,7 +25,6 @@ from sqlalchemy.dialects.oracle import DATE, NVARCHAR, VARCHAR
 from sqlalchemy.sql import quoted_name
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_parseable.py b/tests/unit_tests/db_engine_specs/test_parseable.py
index 4e5a578304..98ffbfd8a4 100644
--- a/tests/unit_tests/db_engine_specs/test_parseable.py
+++ b/tests/unit_tests/db_engine_specs/test_parseable.py
@@ -20,7 +20,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_epoch_to_dttm() -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_postgres.py b/tests/unit_tests/db_engine_specs/test_postgres.py
index b93d70f5f7..97d93c5762 100644
--- a/tests/unit_tests/db_engine_specs/test_postgres.py
+++ b/tests/unit_tests/db_engine_specs/test_postgres.py
@@ -31,7 +31,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_redshift.py b/tests/unit_tests/db_engine_specs/test_redshift.py
index 7702280907..88fbb05dc7 100644
--- a/tests/unit_tests/db_engine_specs/test_redshift.py
+++ b/tests/unit_tests/db_engine_specs/test_redshift.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_rockset.py b/tests/unit_tests/db_engine_specs/test_rockset.py
index 2d5f23c180..91297b5092 100644
--- a/tests/unit_tests/db_engine_specs/test_rockset.py
+++ b/tests/unit_tests/db_engine_specs/test_rockset.py
@@ -21,7 +21,6 @@ from typing import Optional
 import pytest
 
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_snowflake.py b/tests/unit_tests/db_engine_specs/test_snowflake.py
index 68c611c5c0..e467740b0a 100644
--- a/tests/unit_tests/db_engine_specs/test_snowflake.py
+++ b/tests/unit_tests/db_engine_specs/test_snowflake.py
@@ -28,7 +28,6 @@ from sqlalchemy.engine.url import make_url
 from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
 from superset.utils import json
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_sqlite.py b/tests/unit_tests/db_engine_specs/test_sqlite.py
index 485ec293a5..ebc0f59ca5 100644
--- a/tests/unit_tests/db_engine_specs/test_sqlite.py
+++ b/tests/unit_tests/db_engine_specs/test_sqlite.py
@@ -23,7 +23,6 @@ from sqlalchemy.engine import create_engine
 
 from superset.constants import TimeGrain
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 @pytest.mark.parametrize(
diff --git a/tests/unit_tests/db_engine_specs/test_trino.py b/tests/unit_tests/db_engine_specs/test_trino.py
index cbf3bdd5de..08c3e15c1b 100644
--- a/tests/unit_tests/db_engine_specs/test_trino.py
+++ b/tests/unit_tests/db_engine_specs/test_trino.py
@@ -57,7 +57,6 @@ from tests.unit_tests.db_engine_specs.utils import (
     assert_column_spec,
     assert_convert_dttm,
 )
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def _assert_columns_equal(actual_cols, expected_cols) -> None:
diff --git a/tests/unit_tests/db_engine_specs/test_ydb.py b/tests/unit_tests/db_engine_specs/test_ydb.py
index 63538270b6..3a97a0a85a 100644
--- a/tests/unit_tests/db_engine_specs/test_ydb.py
+++ b/tests/unit_tests/db_engine_specs/test_ydb.py
@@ -25,7 +25,6 @@ import pytest
 
 from superset.utils import json
 from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
-from tests.unit_tests.fixtures.common import dttm  # noqa: F401
 
 
 def test_epoch_to_dttm() -> None:
diff --git a/tests/unit_tests/legacy_tests.py b/tests/unit_tests/legacy_tests.py
index 62281b62eb..7654f5c83d 100644
--- a/tests/unit_tests/legacy_tests.py
+++ b/tests/unit_tests/legacy_tests.py
@@ -20,7 +20,6 @@ import copy
 from typing import Any
 
 from superset.legacy import update_time_range
-from tests.unit_tests.conftest import with_feature_flags  # noqa: F401
 
 original_form_data = {
     "granularity_sqla": "order_date",