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

     1  // Copyright 2020 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package auth_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/auth"
    16  	_ "code.gitea.io/gitea/models/perm/access"
    17  )
    18  
    19  func TestMain(m *testing.M) {
    20  	unittest.MainTest(m, &unittest.TestOptions{
    21  		GiteaRootPath: filepath.Join("..", ".."),
    22  	})
    23  }