From f24fa78e32800f4f6e72d8fb32b8efc2f2c0d2fb Mon Sep 17 00:00:00 2001 From: Gleb Kanterov Date: Wed, 22 Jan 2025 15:25:58 +0100 Subject: [PATCH] Fix lint --- bundle/config/mutator/python/python_locations_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bundle/config/mutator/python/python_locations_test.go b/bundle/config/mutator/python/python_locations_test.go index 61a307bf9..32afcc92b 100644 --- a/bundle/config/mutator/python/python_locations_test.go +++ b/bundle/config/mutator/python/python_locations_test.go @@ -2,8 +2,9 @@ package python import ( "bytes" - "path" + "path/filepath" "testing" + "github.com/databricks/cli/libs/diag" "github.com/stretchr/testify/require" @@ -160,8 +161,8 @@ func TestLoadOutput(t *testing.T) { // because mutator pipeline already has expanded locations into absolute path notebookPath, err := dyn.Get(value, "resources.jobs.my_job.tasks[0].notebook_task.notebook_path") require.NoError(t, err) - require.Equal(t, 1, len(notebookPath.Locations())) - require.Equal(t, path.Join(bundleRoot, generatedFileName), notebookPath.Locations()[0].File) + require.Len(t, notebookPath.Locations(), 1) + require.Equal(t, filepath.Join(bundleRoot, generatedFileName), notebookPath.Locations()[0].File) } func TestParsePythonLocations(t *testing.T) {