mirror of https://github.com/databricks/cli.git
Fix lint
This commit is contained in:
parent
a462c9ffe2
commit
f24fa78e32
|
@ -2,8 +2,9 @@ package python
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"path"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/databricks/cli/libs/diag"
|
"github.com/databricks/cli/libs/diag"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
@ -160,8 +161,8 @@ func TestLoadOutput(t *testing.T) {
|
||||||
// because mutator pipeline already has expanded locations into absolute path
|
// 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")
|
notebookPath, err := dyn.Get(value, "resources.jobs.my_job.tasks[0].notebook_task.notebook_path")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, 1, len(notebookPath.Locations()))
|
require.Len(t, notebookPath.Locations(), 1)
|
||||||
require.Equal(t, path.Join(bundleRoot, generatedFileName), notebookPath.Locations()[0].File)
|
require.Equal(t, filepath.Join(bundleRoot, generatedFileName), notebookPath.Locations()[0].File)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestParsePythonLocations(t *testing.T) {
|
func TestParsePythonLocations(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue