Skip to content

Commit 02e7079

Browse files
authored
Fix test_job_dlt_task_linter_unhappy_path (#2868)
## Changes Use genuinely unfond library ### Linked issues None ### Functionality None ### Tests - [x] updated integration tests Co-authored-by: Eric Vergnaud <[email protected]>
1 parent 2f4d153 commit 02e7079

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
@@ -595,7 +595,7 @@ def test_job_dlt_task_linter_unhappy_path(
595595
make_pipeline,
596596
) -> None:
597597
entrypoint = make_directory()
598-
make_notebook(path=f"{entrypoint}/notebook.py", content=b"import greenlet")
598+
make_notebook(path=f"{entrypoint}/notebook.py", content=b"import library_not_found")
599599
dlt_pipeline = make_pipeline(
600600
libraries=[pipelines.PipelineLibrary(notebook=NotebookLibrary(path=f"{entrypoint}/notebook.py"))]
601601
)
@@ -608,7 +608,9 @@ def test_job_dlt_task_linter_unhappy_path(
608608

609609
problems, *_ = simple_ctx.workflow_linter.lint_job(j.job_id)
610610

611-
assert len([problem for problem in problems if problem.message == "Could not locate import: greenlet"]) == 1
611+
assert (
612+
len([problem for problem in problems if problem.message == "Could not locate import: library_not_found"]) == 1
613+
)
612614

613615

614616
def test_job_dlt_task_linter_happy_path(

0 commit comments

Comments
 (0)