Migrates tests for "model/initial_load_test.go" to use testify (#12582)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
ea5d002ca7
Коммит
b7e2fdeb37
@@ -4,6 +4,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@@ -14,7 +15,5 @@ func TestInitialLoadJson(t *testing.T) {
|
|||||||
json := o.ToJson()
|
json := o.ToJson()
|
||||||
ro := InitialLoadFromJson(strings.NewReader(json))
|
ro := InitialLoadFromJson(strings.NewReader(json))
|
||||||
|
|
||||||
if o.User.Id != ro.User.Id {
|
require.Equal(t, o.User.Id, ro.User.Id, "Ids do not match")
|
||||||
t.Fatal("Ids do not match")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user