mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 08:21:11 +00:00 
			
		
		
		
	Cherry-pick from 972381097c (see #7909).
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7932
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-committed-by: Antonin Delpeuch <antonin@delpeuch.eu>
		
	
			
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2018 The Gitea Authors. All rights reserved.
 | 
						|
// SPDX-License-Identifier: MIT
 | 
						|
 | 
						|
package utils
 | 
						|
 | 
						|
import (
 | 
						|
	"testing"
 | 
						|
 | 
						|
	"forgejo.org/models/unittest"
 | 
						|
	"forgejo.org/modules/setting"
 | 
						|
	webhook_service "forgejo.org/services/webhook"
 | 
						|
)
 | 
						|
 | 
						|
func TestMain(m *testing.M) {
 | 
						|
	unittest.MainTest(m, &unittest.TestOptions{
 | 
						|
		SetUp: func() error {
 | 
						|
			setting.LoadQueueSettings()
 | 
						|
			return webhook_service.Init()
 | 
						|
		},
 | 
						|
	})
 | 
						|
}
 |