2021-11-18 11:28:42 +05:30
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2022-11-27 23:50:29 +05:30
|
|
|
// SPDX-License-Identifier: MIT
|
2021-11-18 11:28:42 +05:30
|
|
|
|
2022-10-17 04:59:26 +05:30
|
|
|
package system_test
|
2021-11-18 11:28:42 +05:30
|
|
|
|
|
|
|
import (
|
|
|
|
"path/filepath"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"code.gitea.io/gitea/models/unittest"
|
2022-08-25 08:01:57 +05:30
|
|
|
|
2023-09-08 10:21:15 +05:30
|
|
|
_ "code.gitea.io/gitea/models" // register models
|
|
|
|
_ "code.gitea.io/gitea/models/actions"
|
|
|
|
_ "code.gitea.io/gitea/models/activities"
|
2022-10-17 04:59:26 +05:30
|
|
|
_ "code.gitea.io/gitea/models/system" // register models of system
|
2021-11-18 11:28:42 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
2022-04-14 19:28:21 +05:30
|
|
|
unittest.MainTest(m, &unittest.TestOptions{
|
|
|
|
GiteaRootPath: filepath.Join("..", ".."),
|
|
|
|
})
|
2021-11-18 11:28:42 +05:30
|
|
|
}
|