mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 05:13:05 +02:00
upgrade to use testfixtures v3 (#11904)
* upgrade to use testfixtures v3 * simplify logic * make vendor * update per @lunny * Update templates/repo/empty.tmpl * Update templates/repo/empty.tmpl Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
1 parent
1645d4a5d8
commit
9e6a79bea9
97 files changed
+8814
-5464
No files matched your search
@@ -19,7 +19,6 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/unknwon/com"
|
||||
"gopkg.in/testfixtures.v2"
|
||||
"xorm.io/xorm"
|
||||
"xorm.io/xorm/names"
|
||||
)
|
||||
@@ -101,7 +100,7 @@ func CreateTestEngine(fixturesDir string) error {
|
||||
x.ShowSQL(true)
|
||||
}
|
||||
|
||||
return InitFixtures(&testfixtures.SQLite{}, fixturesDir)
|
||||
return InitFixtures(fixturesDir)
|
||||
}
|
||||
|
||||
func removeAllWithRetry(dir string) error {
|
||||
|
||||
Reference in new issue
Block a user