summaryrefslogtreecommitdiffstats
path: root/services/webhook/dingtalk_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-10 06:13:16 +0100
committerGitHub <noreply@github.com>2021-11-10 06:13:16 +0100
commit33fca2b537d36cf998dd27425b2bb8ed5b0965f3 (patch)
tree817f392502e1c176a5cd7e80290520cb940a8416 /services/webhook/dingtalk_test.go
parentAdded GetUserByIDCtx. (#17602) (diff)
downloadforgejo-33fca2b537d36cf998dd27425b2bb8ed5b0965f3.tar.xz
forgejo-33fca2b537d36cf998dd27425b2bb8ed5b0965f3.zip
Move webhook into models/webhook/ (#17579)
Diffstat (limited to 'services/webhook/dingtalk_test.go')
-rw-r--r--services/webhook/dingtalk_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go
index 5c1d187523..b66b5e43a8 100644
--- a/services/webhook/dingtalk_test.go
+++ b/services/webhook/dingtalk_test.go
@@ -8,7 +8,7 @@ import (
"net/url"
"testing"
- "code.gitea.io/gitea/models"
+ webhook_model "code.gitea.io/gitea/models/webhook"
api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
@@ -163,7 +163,7 @@ func TestDingTalkPayload(t *testing.T) {
p.Action = api.HookIssueReviewed
d := new(DingtalkPayload)
- pl, err := d.Review(p, models.HookEventPullRequestReviewApproved)
+ pl, err := d.Review(p, webhook_model.HookEventPullRequestReviewApproved)
require.NoError(t, err)
require.NotNil(t, pl)
require.IsType(t, &DingtalkPayload{}, pl)