aboutsummaryrefslogtreecommitdiffstats
path: root/models/project
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-04-14 21:58:21 +0800
committerGitHub <noreply@github.com>2022-04-14 21:58:21 +0800
commitb8911fb45673fdc3fce587892c4d9215e7c15019 (patch)
treedf72d047049f53cdbe9cb5d16a03b814f29e9ca6 /models/project
parent4dabc212c70d0cb0874d3af61d1ea24abd468f7e (diff)
downloadgitea-b8911fb45673fdc3fce587892c4d9215e7c15019.tar.gz
gitea-b8911fb45673fdc3fce587892c4d9215e7c15019.zip
Use a struct as test options (#19393)
* Use a struct as test options * Fix name * Fix test
Diffstat (limited to 'models/project')
-rw-r--r--models/project/main_test.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/models/project/main_test.go b/models/project/main_test.go
index 5296a0f40e..2e97b3a5ef 100644
--- a/models/project/main_test.go
+++ b/models/project/main_test.go
@@ -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",
+ },
+ })
}