aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/main_test.go
blob: c7466c493f015eb6120ffc53452f80b3d0792f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2018 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package repo

import (
	"path/filepath"
	"testing"

	"code.gitea.io/gitea/models/unittest"
	"code.gitea.io/gitea/modules/setting"
	webhook_service "code.gitea.io/gitea/services/webhook"
)

func TestMain(m *testing.M) {
	setting.InitProviderAndLoadCommonSettingsForTest()
	setting.LoadQueueSettings()
	unittest.MainTest(m, &unittest.TestOptions{
		GiteaRootPath: filepath.Join("..", "..", "..", ".."),
		SetUp:         webhook_service.Init,
	})
}