Skip to content

Commit 58fb4c3

Browse files
committed
update
1 parent a978098 commit 58fb4c3

26 files changed

+39
-38
lines changed

databricks/sdk/databricks/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from urllib.parse import urlencode
44

55
from ._base_client import _BaseClient
6-
from .databricks.config import *
6+
from .config import *
77
# To preserve backwards compatibility (as these definitions were previously in this module)
88
from .credentials_provider import *
99
from .errors import DatabricksError, _ErrorCustomizer

databricks/sdk/mixins/compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from dataclasses import dataclass
66
from typing import Optional
77

8-
from databricks.sdk.core import DatabricksError
9-
from databricks.sdk.errors import OperationFailed
8+
from databricks.sdk.databricks.core import DatabricksError
9+
from databricks.sdk.databricks.errors import OperationFailed
1010
from databricks.sdk.service import compute
1111

1212
_LOG = logging.getLogger("databricks.sdk")

databricks/sdk/mixins/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, BinaryIO, Iterator, Optional, Union
22

3-
from ..core import DatabricksError
3+
from ..databricks.core import DatabricksError
44
from ..service.workspace import (ExportFormat, ImportFormat, Language,
55
ObjectInfo, ObjectType, WorkspaceAPI)
66

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import pytest as pytest
66
from pyfakefs.fake_filesystem_unittest import Patcher
77

8-
from databricks.sdk.core import Config
9-
from databricks.sdk.credentials_provider import credentials_strategy
8+
from databricks.sdk.databricks.core import Config
9+
from databricks.sdk.databricks.credentials_provider import credentials_strategy
1010

1111
from .integration.conftest import restorable_env # type: ignore
1212

tests/integration/test_clusters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55

6-
from databricks.sdk.core import DatabricksError
6+
from databricks.sdk.databricks.core import DatabricksError
77
from databricks.sdk.service.compute import EventType
88

99

tests/integration/test_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from databricks.sdk.core import DatabricksError
3+
from databricks.sdk.databricks.core import DatabricksError
44

55

66
def test_error_unmarshall(w, random):

tests/integration/test_data_plane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from databricks.sdk.data_plane import DataPlaneTokenSource
1+
from databricks.sdk.databricks.data_plane import DataPlaneTokenSource
22

33

44
def test_data_plane_token_source(ucws, env_or_skip):

tests/integration/test_dbutils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import pytest
66

7-
from databricks.sdk.core import DatabricksError
8-
from databricks.sdk.errors import NotFound
7+
from databricks.sdk.databricks.core import DatabricksError
8+
from databricks.sdk.databricks.errors import NotFound
99

1010

1111
def test_rest_dbfs_ls(w, env_or_skip):
12-
from databricks.sdk.runtime import dbutils
12+
from databricks.sdk.databricks.runtime import dbutils
1313

1414
x = dbutils.fs.ls("/")
1515

@@ -192,7 +192,7 @@ def test_secrets(w, random):
192192
bytes_value=base64.b64encode(random_value.encode()).decode(),
193193
)
194194

195-
from databricks.sdk.runtime import dbutils
195+
from databricks.sdk.databricks.runtime import dbutils
196196

197197
all_scopes = dbutils.secrets.listScopes()
198198
assert random_scope in [scope.getName() for scope in all_scopes]

tests/integration/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import pytest
99

10-
from databricks.sdk.core import DatabricksError
10+
from databricks.sdk.databricks.core import DatabricksError
1111
from databricks.sdk.service.catalog import VolumeType
1212

1313

tests/integration/test_iam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22

3-
from databricks.sdk import errors
4-
from databricks.sdk.core import DatabricksError
3+
from databricks.sdk.databricks import errors
4+
from databricks.sdk.databricks.core import DatabricksError
55

66

77
def test_filtering_groups(w, random):

0 commit comments

Comments
 (0)