code.gitea.io/gitea@v1.21.7/models/avatars/main_test.go (about)

     1  // Copyright 2020 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package avatars_test
     5  
     6  import (
     7  	"path/filepath"
     8  	"testing"
     9  
    10  	"code.gitea.io/gitea/models/unittest"
    11  
    12  	_ "code.gitea.io/gitea/models"
    13  	_ "code.gitea.io/gitea/models/activities"
    14  	_ "code.gitea.io/gitea/models/perm/access"
    15  )
    16  
    17  func TestMain(m *testing.M) {
    18  	unittest.MainTest(m, &unittest.TestOptions{
    19  		GiteaRootPath: filepath.Join("..", ".."),
    20  	})
    21  }