From 9e6a79bea9d7911c81b86a6d3715d340fc19032a Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 17 Jun 2020 15:07:58 -0400 Subject: 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 --- contrib/pr/checkout.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'contrib/pr') diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go index 5085f0a67a..e55fa735dc 100644 --- a/contrib/pr/checkout.go +++ b/contrib/pr/checkout.go @@ -37,7 +37,6 @@ import ( "github.com/go-git/go-git/v5/plumbing" context2 "github.com/gorilla/context" "github.com/unknwon/com" - "gopkg.in/testfixtures.v2" "xorm.io/xorm" ) @@ -96,14 +95,12 @@ func runPR() { setting.Database.LogSQL = true //x, err = xorm.NewEngine("sqlite3", "file::memory:?cache=shared") - var helper testfixtures.Helper = &testfixtures.SQLite{} models.NewEngine(context.Background(), func(_ *xorm.Engine) error { return nil }) models.HasEngine = true //x.ShowSQL(true) err = models.InitFixtures( - helper, path.Join(curDir, "models/fixtures/"), ) if err != nil { -- cgit v1.2.3