mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-17 08:00:03 +02:00
chore: Remove DeleteAttachmentsByIssue
- Introduced in4617bef895
and removed inab2d0b3b44
.
This commit is contained in:
parent
5ce5c9b6b3
commit
58909c52cf
3 changed files with 1 additions and 16 deletions
|
@ -46,11 +46,7 @@ func TestGetByCommentOrIssueID(t *testing.T) {
|
|||
func TestDeleteAttachments(t *testing.T) {
|
||||
require.NoError(t, unittest.PrepareTestDatabase())
|
||||
|
||||
count, err := repo_model.DeleteAttachmentsByIssue(db.DefaultContext, 4, false)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, 2, count)
|
||||
|
||||
count, err = repo_model.DeleteAttachmentsByComment(db.DefaultContext, 2, false)
|
||||
count, err := repo_model.DeleteAttachmentsByComment(db.DefaultContext, 2, false)
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, 2, count)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue