use assert instead of require
This commit is contained in:
parent
3148862ffa
commit
aa769cb2fa
|
@ -3,7 +3,7 @@ package ansible
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -23,7 +23,7 @@ func TestVersion(t *testing.T) {
|
|||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
cmd := tt.ansible.Version()
|
||||
require.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
assert.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ func TestGalaxyInstall(t *testing.T) {
|
|||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
cmd := tt.ansible.GalaxyInstall()
|
||||
require.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
assert.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ func TestAnsibleCommand(t *testing.T) {
|
|||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
cmd := tt.ansible.Play()
|
||||
require.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
assert.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package plugin
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestPipInstall(t *testing.T) {
|
||||
|
@ -22,7 +22,7 @@ func TestPipInstall(t *testing.T) {
|
|||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
cmd := PipInstall(tt.requirements)
|
||||
require.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
assert.Equal(t, tt.want, cmd.Cmd.Args)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue