From 5d04569112c3b886bd919f355285787489f3b799 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Tue, 19 Nov 2024 13:15:52 +0100 Subject: [PATCH] fix: Windows tests --- bundle/config/mutator/translate_paths_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bundle/config/mutator/translate_paths_test.go b/bundle/config/mutator/translate_paths_test.go index 026329672..45a8b62ff 100644 --- a/bundle/config/mutator/translate_paths_test.go +++ b/bundle/config/mutator/translate_paths_test.go @@ -811,7 +811,7 @@ func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) { Tasks: []jobs.Task{ { NotebookTask: &jobs.NotebookTask{ - NotebookPath: "./my_job_notebook.py", + NotebookPath: "my_job_notebook.py", }, Libraries: []compute.Library{ {Whl: "./dist/task.whl"}, @@ -824,15 +824,15 @@ func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) { }, { NotebookTask: &jobs.NotebookTask{ - NotebookPath: "./my_job_notebook.py", + NotebookPath: "my_job_notebook.py", }, Libraries: []compute.Library{ - {Requirements: "./requirements.txt"}, + {Requirements: "requirements.txt"}, }, }, { SparkPythonTask: &jobs.SparkPythonTask{ - PythonFile: "./my_python_file.py", + PythonFile: "my_python_file.py", }, }, { @@ -861,7 +861,7 @@ func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) { Libraries: []pipelines.PipelineLibrary{ { Notebook: &pipelines.NotebookLibrary{ - Path: "./my_pipeline_notebook.py", + Path: "my_pipeline_notebook.py", }, }, { @@ -871,7 +871,7 @@ func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) { }, { File: &pipelines.FileLibrary{ - Path: "./my_python_file.py", + Path: "my_python_file.py", }, }, }, @@ -919,7 +919,7 @@ func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) { // left as is assert.Equal( t, - "dist/task.whl", + filepath.Join("dist", "task.whl"), b.Config.Resources.Jobs["job"].Tasks[0].Libraries[0].Whl, ) assert.Equal(