diff options
Diffstat (limited to 'models/issues/main_test.go')
-rw-r--r-- | models/issues/main_test.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/models/issues/main_test.go b/models/issues/main_test.go index af71f038d6..1c786d005f 100644 --- a/models/issues/main_test.go +++ b/models/issues/main_test.go @@ -9,8 +9,18 @@ import ( "testing" "code.gitea.io/gitea/models/unittest" + "code.gitea.io/gitea/modules/setting" ) +func init() { + setting.SetCustomPathAndConf("", "", "") + setting.LoadForTest() +} + func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", ".."), "") + unittest.MainTest(m, filepath.Join("..", ".."), + "reaction.yml", + "user.yml", + "repository.yml", + ) } |