fix: Skipping path translation tests for windows

This commit is contained in:
Ilya Kuznetsov 2024-11-19 13:33:02 +01:00
parent 5d04569112
commit 530a2a9bab
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"context" "context"
"os" "os"
"path/filepath" "path/filepath"
"runtime"
"strings" "strings"
"testing" "testing"
@ -789,6 +790,10 @@ func TestTranslatePathWithComplexVariables(t *testing.T) {
} }
func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) { func TestTranslatePathsWithSourceLinkedDeployment(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("this test is not applicable on Windows because source-linked mode works only in the Databricks Workspace")
}
dir := t.TempDir() dir := t.TempDir()
touchNotebookFile(t, filepath.Join(dir, "my_job_notebook.py")) touchNotebookFile(t, filepath.Join(dir, "my_job_notebook.py"))
touchNotebookFile(t, filepath.Join(dir, "my_pipeline_notebook.py")) touchNotebookFile(t, filepath.Join(dir, "my_pipeline_notebook.py"))