mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Use more specific test methods (#24265)
Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -68,7 +68,7 @@ func TestAPIListCommentAttachments(t *testing.T) {
 | 
			
		||||
	var apiAttachments []*api.Attachment
 | 
			
		||||
	DecodeJSON(t, resp, &apiAttachments)
 | 
			
		||||
	expectedCount := unittest.GetCount(t, &repo_model.Attachment{CommentID: comment.ID})
 | 
			
		||||
	assert.EqualValues(t, expectedCount, len(apiAttachments))
 | 
			
		||||
	assert.Len(t, apiAttachments, expectedCount)
 | 
			
		||||
 | 
			
		||||
	unittest.AssertExistsAndLoadBean(t, &repo_model.Attachment{ID: apiAttachments[0].ID, CommentID: comment.ID})
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user