gitea源码

main_test.go 437B

12345678910111213141516171819202122
  1. // Copyright 2018 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package repo
  4. import (
  5. "testing"
  6. "code.gitea.io/gitea/models/unittest"
  7. "code.gitea.io/gitea/modules/setting"
  8. webhook_service "code.gitea.io/gitea/services/webhook"
  9. )
  10. func TestMain(m *testing.M) {
  11. unittest.MainTest(m, &unittest.TestOptions{
  12. SetUp: func() error {
  13. setting.LoadQueueSettings()
  14. return webhook_service.Init()
  15. },
  16. })
  17. }