Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kanterov committed Jan 22, 2025
1 parent a462c9f commit f24fa78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bundle/config/mutator/python/python_locations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package python

import (
"bytes"
"path"
"path/filepath"
"testing"

"github.com/databricks/cli/libs/diag"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f24fa78

Please sign in to comment.