Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-29 13:16:10 +01:00

Merge pull request '[TESTS] enable AddFixtures in unit tests' (#2541) from earl-warren/forgejo:wip-add-fixture into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2541
This commit is contained in:
Earl Warren 2024-03-03 03:56:20 +00:00
commit f0f556bee9

View file

@ -271,8 +271,8 @@ func Printf(format string, args ...any) {
func AddFixtures(dirs ...string) func() { func AddFixtures(dirs ...string) func() {
return unittest.OverrideFixtures( return unittest.OverrideFixtures(
unittest.FixturesOptions{ unittest.FixturesOptions{
Dir: filepath.Join(filepath.Dir(setting.AppPath), "models/fixtures/"), Dir: filepath.Join(setting.AppWorkPath, "models/fixtures/"),
Base: filepath.Dir(setting.AppPath), Base: setting.AppWorkPath,
Dirs: dirs, Dirs: dirs,
}, },
) )