mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +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,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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user