18 lines
442 B
Go
18 lines
442 B
Go
package buildcmd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"dappco.re/go/core/build/pkg/build"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestBuildCmd_GetBuilder_Good(t *testing.T) {
|
|
t.Run("returns Python builder for python project type", func(t *testing.T) {
|
|
builder, err := getBuilder(build.ProjectTypePython)
|
|
require.NoError(t, err)
|
|
assert.NotNil(t, builder)
|
|
assert.Equal(t, "python", builder.Name())
|
|
})
|
|
}
|