Skip to content

Commit e4bfabc

Browse files
committed
Add job_parameters to the test run_now to imitate adding it to run_workflow
1 parent ecede94 commit e4bfabc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/unit/install/test_install.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ def test_writeable_dbfs(ws, tmp_path, mock_installation) -> None:
180180

181181

182182
def test_run_workflow_creates_proper_failure(ws, mocker, mock_installation_with_jobs):
183-
def run_now(job_id):
183+
def run_now(job_id, job_parameters: dict[str, Any] | None = None):
184184
assert job_id == 123
185+
assert job_parameters is None
185186

186187
def result():
187188
raise OperationFailed(...)
@@ -215,8 +216,9 @@ def result():
215216

216217

217218
def test_run_workflow_run_id_not_found(ws, mocker, mock_installation_with_jobs):
218-
def run_now(job_id):
219+
def run_now(job_id, job_parameters: dict[str, Any] | None = None):
219220
assert job_id == 123
221+
assert job_parameters is None
220222

221223
def result():
222224
raise OperationFailed(...)
@@ -246,8 +248,9 @@ def result():
246248

247249

248250
def test_run_workflow_creates_failure_from_mapping(ws, mocker, mock_installation, mock_installation_with_jobs):
249-
def run_now(job_id):
251+
def run_now(job_id, job_parameters: dict[str, Any] | None = None):
250252
assert job_id == 123
253+
assert job_parameters is None
251254

252255
def result():
253256
raise OperationFailed(...)
@@ -281,8 +284,9 @@ def result():
281284

282285

283286
def test_run_workflow_creates_failure_many_error(ws, mocker, mock_installation_with_jobs):
284-
def run_now(job_id):
287+
def run_now(job_id, job_parameters: dict[str, Any] | None = None):
285288
assert job_id == 123
289+
assert job_parameters is None
286290

287291
def result():
288292
raise OperationFailed(...)

0 commit comments

Comments
 (0)