Skip to content

Commit a235dd3

Browse files
committed
tests: replaced stretchr/testify by go-openapi/testify
Signed-off-by: Frederic BIDON <[email protected]>
1 parent b93d88e commit a235dd3

15 files changed

+29
-45
lines changed

bson_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package strfmt
66
import (
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
10-
"github.com/stretchr/testify/require"
9+
"github.com/go-openapi/testify/v2/assert"
10+
"github.com/go-openapi/testify/v2/require"
1111
"go.mongodb.org/mongo-driver/bson"
1212
)
1313

conv/date_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/stretchr/testify/assert"
10+
"github.com/go-openapi/testify/v2/assert"
1111

1212
"github.com/go-openapi/strfmt"
1313
)

conv/default_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package conv
66
import (
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
9+
"github.com/go-openapi/testify/v2/assert"
1010

1111
"github.com/go-openapi/strfmt"
1212
)

conv/duration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package conv
66
import (
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
9+
"github.com/go-openapi/testify/v2/assert"
1010

1111
"github.com/go-openapi/strfmt"
1212
)

conv/time_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/stretchr/testify/assert"
10+
"github.com/go-openapi/testify/v2/assert"
1111

1212
"github.com/go-openapi/strfmt"
1313
)

conv/ulid_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/go-openapi/strfmt"
10-
"github.com/stretchr/testify/assert"
11-
"github.com/stretchr/testify/require"
10+
"github.com/go-openapi/testify/v2/assert"
11+
"github.com/go-openapi/testify/v2/require"
1212
)
1313

1414
const testUlid = string("01EYXZVGBHG26MFTG4JWR4K558")

date_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/stretchr/testify/assert"
15-
"github.com/stretchr/testify/require"
14+
"github.com/go-openapi/testify/v2/assert"
15+
"github.com/go-openapi/testify/v2/require"
1616
)
1717

1818
var _ sql.Scanner = &Date{}

default_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"strings"
1717
"testing"
1818

19+
"github.com/go-openapi/testify/v2/assert"
20+
"github.com/go-openapi/testify/v2/require"
1921
"github.com/google/uuid"
20-
"github.com/stretchr/testify/assert"
21-
"github.com/stretchr/testify/require"
2222
)
2323

2424
func TestFormatURI(t *testing.T) {

duration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/stretchr/testify/assert"
12-
"github.com/stretchr/testify/require"
11+
"github.com/go-openapi/testify/v2/assert"
12+
"github.com/go-openapi/testify/v2/require"
1313
)
1414

1515
func TestDuration(t *testing.T) {

format_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"testing"
99
"time"
1010

11+
"github.com/go-openapi/testify/v2/assert"
12+
"github.com/go-openapi/testify/v2/require"
1113
"github.com/go-viper/mapstructure/v2"
12-
"github.com/stretchr/testify/assert"
13-
"github.com/stretchr/testify/require"
1414
)
1515

1616
type testFormat string

0 commit comments

Comments
 (0)