mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
refactor: Unify all json.(loads|dumps) usage to utils.json (#28702)
Co-authored-by: Eyal Ezer <eyal.ezer@ge.com>
This commit is contained in:
@@ -16,14 +16,13 @@
|
||||
# under the License.
|
||||
"""Unit tests for Superset"""
|
||||
|
||||
import json
|
||||
|
||||
import prison
|
||||
import pytest
|
||||
from flask import escape # noqa: F401
|
||||
|
||||
from superset import app
|
||||
from superset.daos.dashboard import DashboardDAO
|
||||
from superset.utils import json
|
||||
from tests.integration_tests.constants import ADMIN_USERNAME, GAMMA_USERNAME
|
||||
from tests.integration_tests.dashboards.base_case import DashboardTestCase
|
||||
from tests.integration_tests.dashboards.consts import * # noqa: F403
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
# under the License.
|
||||
"""Unit tests for Superset"""
|
||||
|
||||
import json
|
||||
from unittest import mock
|
||||
from unittest.mock import patch # noqa: F401
|
||||
|
||||
@@ -24,6 +23,7 @@ import pytest
|
||||
|
||||
from superset.commands.dashboard.exceptions import DashboardForbiddenError
|
||||
from superset.daos.dashboard import DashboardDAO
|
||||
from superset.utils import json
|
||||
from superset.utils.core import backend, override_user
|
||||
from tests.integration_tests.conftest import with_feature_flags
|
||||
from tests.integration_tests.constants import (
|
||||
|
||||
Reference in New Issue
Block a user