mirror of https://github.com/databricks/cli.git
17 lines
445 B
Go
17 lines
445 B
Go
package internal
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/databricks/cli/internal/testcli"
|
|
assert "github.com/databricks/cli/libs/dyn/dynassert"
|
|
)
|
|
|
|
func TestUnknownCommand(t *testing.T) {
|
|
stdout, stderr, err := testcli.RequireErrorRun(t, "unknown-command")
|
|
|
|
assert.Error(t, err, "unknown command", `unknown command "unknown-command" for "databricks"`)
|
|
assert.Equal(t, "", stdout.String())
|
|
assert.Contains(t, stderr.String(), "unknown command")
|
|
}
|