diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-04-28 21:23:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 21:23:28 +0800 |
commit | fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e (patch) | |
tree | c367ef79ac6f3d8c9d18e129395ba0c6a822d535 /integrations/version_test.go | |
parent | 431b26f6d7d5b2d4700b4a65f1a81094c36a9fae (diff) | |
download | gitea-fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e.tar.gz gitea-fca7ddc6ea5ceae298b0a4f33d0b82a2f1ccc06e.zip |
improve integration test to resue models/fixtures and store git repos with tests (#1627)
* improve integration test to resue models/fixtures and store git repos with source
* use gitea-integration-meta dir instead .tar.gz and cleanup every before every test
* fix import package name
Diffstat (limited to 'integrations/version_test.go')
-rw-r--r-- | integrations/version_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/version_test.go b/integrations/version_test.go index 58568e22fe..7243357403 100644 --- a/integrations/version_test.go +++ b/integrations/version_test.go @@ -10,7 +10,6 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/setting" "code.gitea.io/sdk/gitea" @@ -18,7 +17,7 @@ import ( ) func TestVersion(t *testing.T) { - assert.NoError(t, models.LoadFixtures()) + prepareTestEnv(t) setting.AppVer = "1.1.0+dev" req, err := http.NewRequest("GET", "/api/v1/version", nil) |