aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/rename_branch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/rename_branch_test.go')
-rw-r--r--tests/integration/rename_branch_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/integration/rename_branch_test.go b/tests/integration/rename_branch_test.go
index 9a55193ccf..703fc243a4 100644
--- a/tests/integration/rename_branch_test.go
+++ b/tests/integration/rename_branch_test.go
@@ -7,13 +7,19 @@ import (
"net/http"
"testing"
+ git_model "code.gitea.io/gitea/models/git"
repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unittest"
+ "code.gitea.io/gitea/tests"
"github.com/stretchr/testify/assert"
)
func TestRenameBranch(t *testing.T) {
+ defer tests.PrepareTestEnv(t)()
+
+ unittest.AssertExistsAndLoadBean(t, &git_model.Branch{RepoID: 1, Name: "master"})
+
// get branch setting page
session := loginUser(t, "user2")
req := NewRequest(t, "GET", "/user2/repo1/settings/branches")