Skip to content

Commit 1742e6a

Browse files
fix failing tests
1 parent d6a9118 commit 1742e6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ def test_no_org_id_header_on_regular_workspace(requests_mock):
454454
# Verify the X-Databricks-Org-Id header was NOT added
455455
assert "X-Databricks-Org-Id" not in requests_mock.last_request.headers
456456

457+
457458
def test_disable_oauth_refresh_token_from_env(monkeypatch, mocker):
458459
mocker.patch("databricks.sdk.config.Config.init_auth")
459460
monkeypatch.setenv("DATABRICKS_DISABLE_OAUTH_REFRESH_TOKEN", "true")
@@ -480,7 +481,7 @@ def test_config_file_scopes_single(monkeypatch, mocker):
480481
mocker.patch("databricks.sdk.config.Config.init_auth")
481482
monkeypatch.setenv("HOME", str(pathlib.Path(__tests__) / "testdata"))
482483
config = Config(profile="scope-single")
483-
assert config.get_scopes() == ["clusters:read"]
484+
assert config.get_scopes() == ["clusters"]
484485

485486

486487
def test_config_file_scopes_multiple_sorted(monkeypatch, mocker):

tests/test_notebook_oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def test_config_authenticate_integration(
174174

175175
@pytest.mark.parametrize(
176176
"scopes_input,expected_scopes",
177-
[(["sql", "offline_access"], "sql offline_access")],
177+
[(["sql", "offline_access"], "offline_access sql")],
178178
)
179179
def test_workspace_client_integration(
180180
mock_runtime_env, mock_runtime_native_auth, mock_pat_exchange, scopes_input, expected_scopes

0 commit comments

Comments
 (0)