databricks-cli/cmd/labs/project/installed_test.go

20 lines
375 B
Go

package project
import (
"context"
"testing"
"github.com/databricks/cli/libs/env"
"github.com/stretchr/testify/assert"
)
func TestInstalled(t *testing.T) {
ctx := context.Background()
ctx = env.WithUserHomeDir(ctx, "testdata/installed-in-home")
all, err := Installed(ctx)
assert.NoError(t, err)
assert.Len(t, all, 1)
assert.Equal(t, "blueprint", all[0].Name)
}