1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Move user functions into user.go (#17659)

* Move user functions into user.go

* Fix test
This commit is contained in:
Lunny Xiao
2021-11-18 13:58:42 +08:00
committed by GitHub
parent 6874fe90e5
commit 3c3855a05c
14 changed files with 101 additions and 72 deletions

18
models/admin/main_test.go Normal file
View File

@@ -0,0 +1,18 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package admin
import (
"path/filepath"
"testing"
"code.gitea.io/gitea/models/unittest"
)
func TestMain(m *testing.M) {
unittest.MainTest(m, filepath.Join("..", ".."),
"notice.yml",
)
}