1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Use a struct as test options (#19393)

* Use a struct as test options

* Fix name

* Fix test
This commit is contained in:
Lunny Xiao
2022-04-14 21:58:21 +08:00
committed by GitHub
parent 4dabc212c7
commit b8911fb456
40 changed files with 210 additions and 100 deletions

View File

@@ -12,13 +12,16 @@ import (
)
func TestMain(m *testing.M) {
unittest.MainTest(m, filepath.Join("..", ".."),
"email_address.yml",
"user_redirect.yml",
"follow.yml",
"user_open_id.yml",
"two_factor.yml",
"oauth2_application.yml",
"user.yml",
)
unittest.MainTest(m, &unittest.TestOptions{
GiteaRootPath: filepath.Join("..", ".."),
FixtureFiles: []string{
"email_address.yml",
"user_redirect.yml",
"follow.yml",
"user_open_id.yml",
"two_factor.yml",
"oauth2_application.yml",
"user.yml",
},
})
}