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 /integrations | |
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 'integrations')
-rw-r--r-- | integrations/integration_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go index 0d49e524d5..e99264beb8 100644 --- a/integrations/integration_test.go +++ b/integrations/integration_test.go @@ -36,7 +36,6 @@ import ( "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" "github.com/unknwon/com" - "gopkg.in/testfixtures.v2" ) var mac *macaron.Macaron @@ -88,22 +87,7 @@ func TestMain(m *testing.M) { } } - var helper testfixtures.Helper - if setting.Database.UseMySQL { - helper = &testfixtures.MySQL{} - } else if setting.Database.UsePostgreSQL { - helper = &testfixtures.PostgreSQL{} - } else if setting.Database.UseSQLite3 { - helper = &testfixtures.SQLite{} - } else if setting.Database.UseMSSQL { - helper = &testfixtures.SQLServer{} - } else { - fmt.Println("Unsupported RDBMS for integration tests") - os.Exit(1) - } - err := models.InitFixtures( - helper, path.Join(filepath.Dir(setting.AppPath), "models/fixtures/"), ) if err != nil { |