mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
21 lines
418 B
Go
21 lines
418 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/danielmiessler/fabric/core"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCli(t *testing.T) {
|
|
t.Skip("Skipping test for now, collision with flag -t")
|
|
originalArgs := os.Args
|
|
defer func() { os.Args = originalArgs }()
|
|
|
|
os.Args = []string{os.Args[0]}
|
|
err := Cli("test")
|
|
assert.Error(t, err)
|
|
assert.Equal(t, core.NoSessionPatternUserMessages, err.Error())
|
|
}
|