Skip to content

Commit a90f623

Browse files
Constrain the transfer setter forwarding test signature
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent 9e0f8ab commit a90f623

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎tests/unit/test_kernel_client.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import types
2020
from pathlib import Path
2121
from typing import Optional
22-
from unittest.mock import MagicMock
22+
from unittest.mock import MagicMock, create_autospec
2323

2424
import pytest
2525

@@ -843,6 +843,13 @@ def test_execute_command_forwards_allowed_local_paths(
843843
cursor.arraysize = 100
844844
cursor.buffer_size_bytes = 1024
845845
stmt = c._kernel_session.statement.return_value
846+
847+
def set_staging_allowed_local_paths(paths=None, *, input_stream_token=None):
848+
pass
849+
850+
stmt.set_staging_allowed_local_paths = create_autospec(
851+
set_staging_allowed_local_paths
852+
)
846853
executed = MagicMock(
847854
statement_id="00000000-0000-0000-0000-000000000001",
848855
arrow_schema=MagicMock(return_value=pa.schema([("x", pa.int64())])),

0 commit comments

Comments
 (0)