You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add four tests covering the cached_property contract:
- ``dbutils`` is a ``functools.cached_property`` descriptor on
``WorkspaceClient``.
- ``WorkspaceClient.__init__`` does not invoke ``_make_dbutils``.
- The first ``ws.dbutils`` read invokes ``_make_dbutils`` exactly once;
subsequent reads return the cached value without re-invoking.
- Constructing ``WorkspaceClient`` on a faked Spark Connect runtime
(whose ``dbruntime`` raises ``CONTEXT_UNAVAILABLE_FOR_REMOTE_CLIENT``
on any namespace materialization) succeeds without importing
``databricks.sdk.runtime`` at all — the durable sidestep of
databricks/dbt-databricks#1252.
0 commit comments