From aa769cb2fa2fb114c189281edec587cb6bd30ce7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 6 May 2024 21:03:08 +0200 Subject: [PATCH] use assert instead of require --- ansible/ansible_test.go | 8 ++++---- plugin/util_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible/ansible_test.go b/ansible/ansible_test.go index d1dc4fb..f463e07 100644 --- a/ansible/ansible_test.go +++ b/ansible/ansible_test.go @@ -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) }) } } diff --git a/plugin/util_test.go b/plugin/util_test.go index 5c9b659..7ba63e9 100644 --- a/plugin/util_test.go +++ b/plugin/util_test.go @@ -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) }) } }