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,11 +16,10 @@
# under the License.
# pylint: disable=import-outside-toplevel, unused-argument, unused-import
import json
from sqlalchemy.orm.session import Session
from superset import db
from superset.utils import json
def test_export(session: Session) -> None:

View File

@@ -17,7 +17,6 @@
# pylint: disable=import-outside-toplevel, unused-argument, unused-import, invalid-name
import copy
import json
import re
import uuid
from typing import Any
@@ -33,6 +32,7 @@ from superset.commands.dataset.exceptions import (
DatasetForbiddenDataURI,
)
from superset.commands.dataset.importers.v1.utils import validate_data_uri
from superset.utils import json
def test_import_dataset(mocker: MockFixture, session: Session) -> None: