mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	improve integration test to resue models/fixtures and store git repos with tests (#1627)
* improve integration test to resue models/fixtures and store git repos with source * use gitea-integration-meta dir instead .tar.gz and cleanup every before every test * fix import package name
This commit is contained in:
		@@ -10,14 +10,14 @@ import (
 | 
			
		||||
	"net/url"
 | 
			
		||||
	"testing"
 | 
			
		||||
 | 
			
		||||
	"code.gitea.io/gitea/models"
 | 
			
		||||
	"code.gitea.io/gitea/modules/setting"
 | 
			
		||||
 | 
			
		||||
	"github.com/stretchr/testify/assert"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func TestSignup(t *testing.T) {
 | 
			
		||||
	assert.NoError(t, models.LoadFixtures())
 | 
			
		||||
	prepareTestEnv(t)
 | 
			
		||||
 | 
			
		||||
	setting.Service.EnableCaptcha = false
 | 
			
		||||
 | 
			
		||||
	req, err := http.NewRequest("POST", "/user/sign_up",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user