summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-17 17:58:31 +0800
committerGitHub <noreply@github.com>2021-11-17 17:58:31 +0800
commit95d3266bee797cbeb7228d361fe32531737906d2 (patch)
tree68d90e7ef3e890c1ac311cf79f08cbe12a0dafca /integrations
parentadda27668b9764f97822e56e0591a6eb22165a83 (diff)
downloadgitea-95d3266bee797cbeb7228d361fe32531737906d2.tar.gz
gitea-95d3266bee797cbeb7228d361fe32531737906d2.zip
Move user follow and openid into models/user/ (#17613)
* Move UserRedirect into models/user/ * Fix lint & test * Fix lint * Fix lint * remove nolint comment * Fix lint * Move user follow and openid into models/user * Ignore the lint * Ignore the lint * Fix test * ignore stutters lint on UserOpenID
Diffstat (limited to 'integrations')
-rw-r--r--integrations/delete_user_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/integrations/delete_user_test.go b/integrations/delete_user_test.go
index 86896c8ae1..f8efab0a24 100644
--- a/integrations/delete_user_test.go
+++ b/integrations/delete_user_test.go
@@ -11,12 +11,13 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/unittest"
+ user_model "code.gitea.io/gitea/models/user"
)
func assertUserDeleted(t *testing.T, userID int64) {
unittest.AssertNotExistsBean(t, &models.User{ID: userID})
- unittest.AssertNotExistsBean(t, &models.Follow{UserID: userID})
- unittest.AssertNotExistsBean(t, &models.Follow{FollowID: userID})
+ unittest.AssertNotExistsBean(t, &user_model.Follow{UserID: userID})
+ unittest.AssertNotExistsBean(t, &user_model.Follow{FollowID: userID})
unittest.AssertNotExistsBean(t, &models.Repository{OwnerID: userID})
unittest.AssertNotExistsBean(t, &models.Access{UserID: userID})
unittest.AssertNotExistsBean(t, &models.OrgUser{UID: userID})