mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Refactor config provider (#24245)
This PR introduces more abstract about `ConfigProvider` and hides more `ini` references. --------- Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		@@ -7,11 +7,10 @@ import (
 | 
			
		||||
	"testing"
 | 
			
		||||
 | 
			
		||||
	"github.com/stretchr/testify/assert"
 | 
			
		||||
	ini "gopkg.in/ini.v1"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func Test_loadMailerFrom(t *testing.T) {
 | 
			
		||||
	iniFile := ini.Empty()
 | 
			
		||||
	iniFile := NewEmptyConfigProvider()
 | 
			
		||||
	kases := map[string]*Mailer{
 | 
			
		||||
		"smtp.mydomain.com": {
 | 
			
		||||
			SMTPAddr: "smtp.mydomain.com",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user