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

     1  // Copyright 2021 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package organization_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/actions"
    14  	_ "code.gitea.io/gitea/models/activities"
    15  	_ "code.gitea.io/gitea/models/organization"
    16  	_ "code.gitea.io/gitea/models/repo"
    17  	_ "code.gitea.io/gitea/models/user"
    18  )
    19  
    20  func TestMain(m *testing.M) {
    21  	unittest.MainTest(m, &unittest.TestOptions{
    22  		GiteaRootPath: filepath.Join("..", ".."),
    23  	})
    24  }