databricks-cli/bundle/run/runner_test.go

17 lines
540 B
Go
Raw Normal View History

2022-12-15 14:12:47 +00:00
package run
import (
"testing"
"github.com/databricks/cli/bundle/config/resources"
refs "github.com/databricks/cli/bundle/resources"
2022-12-15 14:12:47 +00:00
"github.com/stretchr/testify/assert"
)
func TestRunner_IsRunnable(t *testing.T) {
assert.True(t, IsRunnable(refs.Reference{Resource: &resources.Job{}}))
assert.True(t, IsRunnable(refs.Reference{Resource: &resources.Pipeline{}}))
assert.False(t, IsRunnable(refs.Reference{Resource: &resources.MlflowModel{}}))
assert.False(t, IsRunnable(refs.Reference{Resource: &resources.MlflowExperiment{}}))
2022-12-15 14:12:47 +00:00
}