we don't use require for some reason
This commit is contained in:
parent
e85dd8f407
commit
8ca01fa291
|
|
@ -13,7 +13,6 @@ import (
|
||||||
api "code.gitea.io/sdk/gitea"
|
api "code.gitea.io/sdk/gitea"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAPIUserReposNotLogin(t *testing.T) {
|
func TestAPIUserReposNotLogin(t *testing.T) {
|
||||||
|
|
@ -277,7 +276,7 @@ func TestAPIOrgRepoCreate(t *testing.T) {
|
||||||
|
|
||||||
var apiRepo *api.Repository
|
var apiRepo *api.Repository
|
||||||
DecodeJSON(t, resp, &apiRepo)
|
DecodeJSON(t, resp, &apiRepo)
|
||||||
require.Equal(t, tc.repoName, apiRepo.Name)
|
assert.Equal(t, tc.repoName, apiRepo.Name)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user