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:
Eyal Ezer
2024-05-28 16:17:41 -05:00
committed by GitHub
parent 87110ebce4
commit 07b2449bd7
234 changed files with 530 additions and 480 deletions

View File

@@ -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

View File

@@ -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 (