databricks-cli/libs/python/interpreters_test.go

18 lines
309 B
Go
Raw Permalink Normal View History

2023-08-07 12:36:32 +00:00
package python
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func TestAtLeastOnePythonInstalled(t *testing.T) {
ctx := context.Background()
all, err := DetectInterpreters(ctx)
assert.NoError(t, err)
a := all.Latest()
t.Logf("latest is: %s", a)
assert.True(t, len(all) > 0)
}