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 /models/unit_tests.go | |
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 'models/unit_tests.go')
-rw-r--r-- | models/unit_tests.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/unit_tests.go b/models/unit_tests.go index 1b27eebcd0..9266b3a658 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -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 { |