mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Decouple unit test, remove intermediate unittestbridge package (#17662)
				
					
				
			Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		| @@ -7,7 +7,6 @@ package models | ||||
| import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models/db" | ||||
| 	"code.gitea.io/gitea/models/unittest" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| ) | ||||
| @@ -65,8 +64,8 @@ func TestUpdateAssignee(t *testing.T) { | ||||
| func TestMakeIDsFromAPIAssigneesToAdd(t *testing.T) { | ||||
| 	assert.NoError(t, unittest.PrepareTestDatabase()) | ||||
|  | ||||
| 	_ = db.AssertExistsAndLoadBean(t, &User{ID: 1}).(*User) | ||||
| 	_ = db.AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) | ||||
| 	_ = unittest.AssertExistsAndLoadBean(t, &User{ID: 1}).(*User) | ||||
| 	_ = unittest.AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) | ||||
|  | ||||
| 	IDs, err := MakeIDsFromAPIAssigneesToAdd("", []string{""}) | ||||
| 	assert.NoError(t, err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user