mirror of https://github.com/databricks/cli.git
20 lines
375 B
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)
|
||
|
}
|