Skip to content

Commit 0ffd50f

Browse files
authored
Fix failing test test_job_task_linter_library_not_installed_cluster (#2867)
## Changes Use genuinely unknown library ### Linked issues None ### Functionality None ### Tests - [ x] updated integration tests --------- Co-authored-by: Eric Vergnaud <[email protected]>
1 parent 02e7079 commit 0ffd50f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/source_code/test_jobs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_job_task_linter_library_not_installed_cluster(
8686
created_cluster = make_cluster(single_node=True)
8787
entrypoint = make_directory()
8888

89-
notebook = make_notebook(path=f"{entrypoint}/notebook.ipynb", content=b"import greenlet")
89+
notebook = make_notebook(path=f"{entrypoint}/notebook.ipynb", content=b"import library_not_found")
9090

9191
task = jobs.Task(
9292
task_key=make_random(4),
@@ -100,7 +100,9 @@ def test_job_task_linter_library_not_installed_cluster(
100100

101101
problems, *_ = simple_ctx.workflow_linter.lint_job(j.job_id)
102102

103-
assert len([problem for problem in problems if problem.message == "Could not locate import: greenlet"]) == 1
103+
assert (
104+
len([problem for problem in problems if problem.message == "Could not locate import: library_not_found"]) == 1
105+
)
104106

105107

106108
def test_job_task_linter_library_installed_cluster(

0 commit comments

Comments
 (0)