Skip to content

Commit eb1a9b4

Browse files
pass param as TSparkParameterValue
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 156421a commit eb1a9b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/test_sea_backend.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,11 @@ def test_command_execution_advanced(
354354
"status": {"state": "SUCCEEDED"},
355355
}
356356
mock_http_client._make_request.return_value = execute_response
357-
param = {"name": "param1", "value": "value1", "type": "STRING"}
357+
param = Mock()
358+
param.name = "param1"
359+
param.value = Mock()
360+
param.value.stringValue = "value1"
361+
param.type = "STRING"
358362

359363
with patch.object(sea_client, "get_execution_result"):
360364
sea_client.execute_command(

0 commit comments

Comments
 (0)