Skip to content

Commit 79d7588

Browse files
committed
Fix test
1 parent 6cd1b70 commit 79d7588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from databricks.sdk.databricks.oauth import Token
2121
from databricks.sdk.service.catalog import PermissionsChange
2222
from databricks.sdk.service.iam import AccessControlRequest
23+
from databricks.sdk.service.jobs import JobAccessControlRequest
2324
from databricks.sdk.version import __version__
2425

2526
from .conftest import noop_credentials
@@ -287,9 +288,8 @@ def test_access_control_list(config, requests_mock):
287288
"http://localhost/api/2.2/jobs/create",
288289
request_headers={"User-Agent": config.user_agent},
289290
)
290-
291291
w = WorkspaceClient(config=config)
292-
res = w.jobs.create(access_control_list=[AccessControlRequest(group_name="group")])
292+
res = w.jobs.create(access_control_list=[JobAccessControlRequest(group_name="group")])
293293

294294
assert requests_mock.call_count == 1
295295
assert requests_mock.called

0 commit comments

Comments
 (0)