mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-14 02:51:35 +02:00
Codestyle: append gofumpt and revive fixes
This commit is contained in:
parent
f0c0ec0db7
commit
9e433386d4
1 changed files with 7 additions and 5 deletions
|
@ -4,14 +4,16 @@
|
|||
package integration
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
repo_model "code.gitea.io/gitea/models/repo"
|
||||
"code.gitea.io/gitea/models/unittest"
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
"code.gitea.io/gitea/tests"
|
||||
"fmt"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"net/http"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAPIRepoPulls(t *testing.T) {
|
||||
|
@ -21,8 +23,8 @@ func TestAPIRepoPulls(t *testing.T) {
|
|||
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
|
||||
|
||||
// issue id without assigned review member or review team
|
||||
issueId := 5
|
||||
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/%s/pulls/%d", repo.OwnerName, repo.Name, issueId))
|
||||
issueID := 5
|
||||
req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/%s/pulls/%d", repo.OwnerName, repo.Name, issueID))
|
||||
res := MakeRequest(t, req, http.StatusOK)
|
||||
var pr *api.PullRequest
|
||||
DecodeJSON(t, res, &pr)
|
||||
|
|
Loading…
Add table
Reference in a new issue