Skip to content

Commit 56a2ecc

Browse files
committed
Fix test
1 parent ea166b8 commit 56a2ecc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

models/repo/main_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2020 The Gitea Authors. All rights reserved.
2+
// Use of this source code is governed by a MIT-style
3+
// license that can be found in the LICENSE file.
4+
5+
package repo
6+
7+
import (
8+
"path/filepath"
9+
"testing"
10+
11+
"code.gitea.io/gitea/models/unittest"
12+
)
13+
14+
func TestMain(m *testing.M) {
15+
unittest.MainTest(m, filepath.Join("..", ".."),
16+
"attachment.yml",
17+
)
18+
}

0 commit comments

Comments
 (0)