mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix tests on migrations (#21705)
This commit is contained in:
		
							
								
								
									
										15
									
								
								models/migrations/v1_19/main_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								models/migrations/v1_19/main_test.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
// Copyright 2021 The Gitea Authors. All rights reserved.
 | 
			
		||||
// Use of this source code is governed by a MIT-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
package v1_19 // nolint
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"testing"
 | 
			
		||||
 | 
			
		||||
	"code.gitea.io/gitea/models/migrations/base"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func TestMain(m *testing.M) {
 | 
			
		||||
	base.MainTest(m)
 | 
			
		||||
}
 | 
			
		||||
@@ -16,7 +16,7 @@ import (
 | 
			
		||||
	"github.com/stretchr/testify/assert"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func Test_addHeaderAuthorizationEncryptedColWebhook(t *testing.T) {
 | 
			
		||||
func Test_AddHeaderAuthorizationEncryptedColWebhook(t *testing.T) {
 | 
			
		||||
	// Create Webhook table
 | 
			
		||||
	type Webhook struct {
 | 
			
		||||
		ID   int64            `xorm:"pk autoincr"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user