diff options
author | techknowlogick <techknowlogick@gitea.io> | 2020-06-17 15:07:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 22:07:58 +0300 |
commit | 9e6a79bea9d7911c81b86a6d3715d340fc19032a (patch) | |
tree | 3c5982227a3ed7481786185f5fdf5a8c1107f279 /contrib | |
parent | 1645d4a5d8def3cc5451e068aa0a321e028a889b (diff) | |
download | gitea-9e6a79bea9d7911c81b86a6d3715d340fc19032a.tar.gz gitea-9e6a79bea9d7911c81b86a6d3715d340fc19032a.zip |
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>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pr/checkout.go | 3 |
1 files changed, 0 insertions, 3 deletions
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 { |