mirror of https://github.com/databricks/cli.git
17 lines
257 B
Go
17 lines
257 B
Go
|
package root
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestSkipPrompt(t *testing.T) {
|
||
|
ctx := context.Background()
|
||
|
assert.False(t, shouldSkipPrompt(ctx))
|
||
|
|
||
|
ctx = SkipPrompt(ctx)
|
||
|
assert.True(t, shouldSkipPrompt(ctx))
|
||
|
}
|