aboutsummaryrefslogtreecommitdiffstats
path: root/models/avatars/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/avatars/main_test.go')
-rw-r--r--models/avatars/main_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/models/avatars/main_test.go b/models/avatars/main_test.go
new file mode 100644
index 0000000000..0e98d8f64d
--- /dev/null
+++ b/models/avatars/main_test.go
@@ -0,0 +1,22 @@
+// Copyright 2020 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package avatars_test
+
+import (
+ "path/filepath"
+ "testing"
+
+ "code.gitea.io/gitea/models/unittest"
+
+ _ "code.gitea.io/gitea/models"
+ _ "code.gitea.io/gitea/models/activities"
+ _ "code.gitea.io/gitea/models/perm/access"
+)
+
+func TestMain(m *testing.M) {
+ unittest.MainTest(m, &unittest.TestOptions{
+ GiteaRootPath: filepath.Join("..", ".."),
+ })
+}