summaryrefslogtreecommitdiffstats
path: root/routers/repo/release_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/release_test.go')
-rw-r--r--routers/repo/release_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/routers/repo/release_test.go b/routers/repo/release_test.go
index 47d1a89b54..38c0d9fec0 100644
--- a/routers/repo/release_test.go
+++ b/routers/repo/release_test.go
@@ -8,8 +8,9 @@ import (
"testing"
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/auth"
+ auth "code.gitea.io/gitea/modules/forms"
"code.gitea.io/gitea/modules/test"
+ "code.gitea.io/gitea/modules/web"
)
func TestNewReleasePost(t *testing.T) {
@@ -48,7 +49,8 @@ func TestNewReleasePost(t *testing.T) {
test.LoadUser(t, ctx, 2)
test.LoadRepo(t, ctx, 1)
test.LoadGitRepo(t, ctx)
- NewReleasePost(ctx, testCase.Form)
+ web.SetForm(ctx, &testCase.Form)
+ NewReleasePost(ctx)
models.AssertExistsAndLoadBean(t, &models.Release{
RepoID: 1,
PublisherID: 2,