From befa7445d254cc88662015222c85ccd4c96b9a10 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Fri, 15 Dec 2017 13:11:02 -0800 Subject: Unit tests for routers/repo/issue_label (#3198) --- integrations/pull_merge_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'integrations/pull_merge_test.go') diff --git a/integrations/pull_merge_test.go b/integrations/pull_merge_test.go index d6413be549..65ccc93f95 100644 --- a/integrations/pull_merge_test.go +++ b/integrations/pull_merge_test.go @@ -11,6 +11,8 @@ import ( "strings" "testing" + "code.gitea.io/gitea/modules/test" + "github.com/stretchr/testify/assert" ) @@ -54,7 +56,7 @@ func TestPullMerge(t *testing.T) { resp := testPullCreate(t, session, "user1", "repo1", "master") - elem := strings.Split(RedirectURL(t, resp), "/") + elem := strings.Split(test.RedirectURL(resp), "/") assert.EqualValues(t, "pulls", elem[3]) testPullMerge(t, session, elem[1], elem[2], elem[4]) } @@ -67,7 +69,7 @@ func TestPullCleanUpAfterMerge(t *testing.T) { resp := testPullCreate(t, session, "user1", "repo1", "feature/test") - elem := strings.Split(RedirectURL(t, resp), "/") + elem := strings.Split(test.RedirectURL(resp), "/") assert.EqualValues(t, "pulls", elem[3]) testPullMerge(t, session, elem[1], elem[2], elem[4]) -- cgit v1.2.3