mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Use a struct as test options (#19393)
* Use a struct as test options * Fix name * Fix test
This commit is contained in:
@ -14,10 +14,13 @@ import (
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
unittest.MainTest(m, filepath.Join("..", ".."),
|
||||
"project.yml",
|
||||
"project_board.yml",
|
||||
"project_issue.yml",
|
||||
"repository.yml",
|
||||
)
|
||||
unittest.MainTest(m, &unittest.TestOptions{
|
||||
GiteaRootPath: filepath.Join("..", ".."),
|
||||
FixtureFiles: []string{
|
||||
"project.yml",
|
||||
"project_board.yml",
|
||||
"project_issue.yml",
|
||||
"repository.yml",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user